public ActionResult Delete(int id) { var sId = AgroExpressDBAccess.GetSubAreaById(id); if (sId.IsDeleted == false) { AgroExpressDBAccess.DisableSubArea(sId.PKSubAreaId); return(RedirectToAction("EnabledList")); } else { return(RedirectToAction("EnabledList")); } }