public ActionResult Enable(int id) { var sId = AgroExpressDBAccess.GetSubAreaById(id); if (sId.IsDeleted == true) { AgroExpressDBAccess.EnableSubArea(sId.PKSubAreaId); return(RedirectToAction("DisabledList")); } else { return(RedirectToAction("DisabledList")); } }