public ActionResult Edit(Contributor contributor) { var mgr = new SimchaFundManager(Properties.Settings.Default.ConStr); mgr.UpdateContributor(contributor); TempData["Message"] = "Contributor updated successfully"; return(RedirectToAction("Index")); }
public IActionResult Edit(Contributor contributor) { var mgr = new SimchaFundManager(_connectionString); mgr.UpdateContributor(contributor); TempData["Message"] = "Contributor updated successfully"; return(RedirectToAction("Index")); }