public ActionResult DeleteMovie(int Id) { //Setting response to null ActionResult response = null; try { //Passing in the movieID to the delete method _movieDAO.DeleteMovieByID(Id); //Setting response to view all after said and done response = RedirectToAction("ViewAllMovies", "Movie"); } catch (Exception exception) { //Logs if an exception _Logger.Log("Fatal", exception.Source, exception.TargetSite.ToString(), exception.Message, exception.StackTrace); //Setting response to view all after said and done response = RedirectToAction("ViewAllMovies", "Movie"); } finally { } //Show whichever response happened return(response); }