how can i send Response from c# class file to MVCcontroller :  
If my condition fails as `rdr.HasRows == true` how can i responde my controller its fails

 

        public Employee DeleteEmpById(int key)
                {
                    try
                    {
    SqlCommand cmd = new SqlCommand("Sp_GetEmployeeById", con);
                    cmd.CommandType = CommandType.StoredProcedure;
                    cmd.Parameters.AddWithValue("@EmpId", key);
                    SqlDataReader rdr = cmd.ExecuteReader();
                    if (rdr.HasRows == true)
                        {
                       }
        else
        ////Here what i mention when rdr.HasRows fals
        }

**Controller**
 

    public ActionResult DeleteById(int id)
            {
                var x = ObjRepo.DeleteEmpById(id);
                return View(x);
            }