public ActionResult Edit(MovieEditVM movieEditVm) { var ops = new MovieOperations(); ops.UpdateMovie(movieEditVm.MovieToEdit); return RedirectToAction("Edit", new {id=movieEditVm.MovieToEdit.MovieID}); }
public ActionResult Edit(MovieEditVM movieEditVm) { var movieOps = new MovieOperations(); movieEditVm.MovieToEdit = movieOps.UpdateMovie(movieEditVm.MovieToEdit); return RedirectToAction("Index", "Home"); }