public IActionResult Details(int id) { MovieDto movie = _movieRepository.GetMovie(id); movie = _tmdbRepository.UpdateMovie(movie); _genreRepository.CheckIfGenreExists(movie.Genre); _movieRepository.UpdateGenres(movie.Genre, movie.Id); _movieRepository.UpdateMovie(movie); foreach (var item in movie.People) { _peopleRepository.CheckIfPersonExists(_tmdbRepository.UpdatePeople(item.TmdbId)); } _movieRepository.UpdatePeopleMovie(movie.People, movie.Id); return(RedirectToAction("Details", movie.Id)); }