public IActionResult Add(Movie movie) { if (ModelState.IsValid) { //checking model state if (movie.Title == "Independence Day") { return(View("Confirmation", movie)); } context.Movies.Add(movie); context.SaveChanges(); Temp.AddMovie(movie); return(View("Confirmation", movie)); } return(View()); }