public ActionResult Enable(int id) { var aId = AgroExpressDBAccess.GetPartnerByID(id); if (aId.IsDeleted == true) { AgroExpressDBAccess.EnablePartner(aId.PKPartnerId); return(RedirectToAction("DisabledList")); } else { return(RedirectToAction("DisabledList")); } }