public ActionResult Delete(int id) { var cId = AgroExpressDBAccess.GetSalePointById(id); if (cId.IsDeleted == false) { AgroExpressDBAccess.DisableSalePoint(cId.PKSalePointID); return(RedirectToAction("EnabledList")); } else { return(RedirectToAction("EnabledList")); } }