public async Task <ActionResult> Create(Movie movie) { if (ModelState.IsValid) { await _moviesRepository.CreateAsync(movie); return(RedirectToAction("Index")); } return(View(movie)); }
public async Task <ActionResult> Create(Movie movie) { if (ModelState.IsValid) { await _moviesRepository.CreateAsync(movie); return(RedirectToAction("Index")); } return(View(movie)); }