public ActionResult AddActorToMovie(MovieActorCombo combo) { //Setting the response to null ActionResult response = null; if (ModelState.IsValid) { try { //Setting the movie/actor combo to DO from PO MovieActorComboDO comboDO = Mapping.Mapper.ComboPOtoDO(combo); //Passing in the DO combo to the add actor to movie method _movieDAO.AddActorToMovie(comboDO); } catch (Exception exception) { //Logs if there's an issue _Logger.Log("Fatal", exception.Source, exception.TargetSite.ToString(), exception.Message, exception.StackTrace); //Setting view, to go to the actual view that ties an actor to a movie. response = View(combo); } finally { //Setting response to view all the movies response = RedirectToAction("ViewAllMovies", "Movie"); } } else { //Setting response to view the movie you're currently on response = View(combo); } //Show whichever response happened return(response); }