public ActionResult EditContact(Contact c) { var database = new FakeDatabase(); database.Edit(c); return(RedirectToAction("Index")); }
public ActionResult EditMovie(MovieProperties newMovie) { if (ModelState.IsValid) { var database = new FakeDatabase(); database.Edit(newMovie); return(RedirectToAction("Index")); } return(View("Edit", newMovie)); }