public ActionResult AddBenefit(BenefitView model) { if (ModelState.IsValid) { prepo.AddBenefit(model); return(RedirectToAction("OfferedBenefits")); } return(View(model)); }
public ActionResult AddBenefit(BenefitView model) { if (ModelState.IsValid) { prepo.AddBenefit(model); return(RedirectToAction("OfferedBenefits")); } return(View(model)); }