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 ActionResult EditContributor(Contributors contributor) { SimchaFundManager manager = new SimchaFundManager(Properties.Settings.Default.ConStr); manager.UpdateContributor(contributor); return Redirect("Contributors"); }