/// <summary> /// Edit information about a movie by id passed as a route parameter. /// GET: Movies/EditSeat/5 /// </summary> /// <param name="id">Id of the movie to be edited.</param> /// <returns>Edit view with the movie object record to be edited.</returns> public async Task <IActionResult> Edit(int?id) { if (id == null) { return(NotFound()); } var movie = await _moviesRepository.EditSeat(id); if (movie == null) { return(NotFound()); } return(View(movie)); }