public IActionResult NewMovie(Movie movie) { if (!ModelState.IsValid) { return(View()); } MovieList.AddMovie(movie); Debug.WriteLine("Title: " + movie.Title); return(View("Movies", MovieList.Movies)); }
public IActionResult NewMovie(NewMovieResponse movieResponse) { if (ModelState.IsValid) { MovieList.AddMovie(movieResponse); return(View("Confirmation", movieResponse)); } else { return(View()); } }