public ActionResult EditFundingType(FundingTypeObject model) { if (!ModelState.IsValid) { return(View(model)); } model.Save(); return(RedirectToAction("FundingTypes")); }
public ActionResult EditFundingType(int?id) { FundingTypeObject model = new FundingTypeObject(); if (id.HasValue) { model = MemoryCache.GetFundingType(id.Value); } return(View(model)); }