public ActionResult UpdateMovie(MoviePO form) { //Setting response to null ActionResult response = null; if (ModelState.IsValid) { try { //Passing in the form to be updated to the DO MovieDO movieDO = Mapping.Mapper.MoviePOtoDO(form); //Passing in the movie to be updated via the update movie method _movieDAO.UpdateMovieById(movieDO); //Setting response to view the updated movie response = RedirectToAction("MovieDetails", "Movie", new { Id = form.MovieID }); } catch (Exception exception) { //Logs if there's an exception _Logger.Log("Fatal", exception.Source, exception.TargetSite.ToString(), exception.Message, exception.StackTrace); //Setting response to view all movies if there's a problem response = RedirectToAction("ViewAllMovies", "Movie"); } finally { } } else { //If modelstate is a no go, take them back to the form to try again response = View(form); } //Show whichever response happened return(response); }