public ActionResult DeleteSector(Sector objSector) { string Result = string.Empty; Result = _admindata.DeleteSector(objSector); if (Result == "2") { Result = "Sector deleted successfully"; } return(Json(Result, JsonRequestBehavior.AllowGet)); }