public async Task <ActionResult> Index(int?page) { MongoDBManager mm = new MongoDBManager(); var movies = await mm.GetMovies(); List <MovieListModel> listMovies = new List <MovieListModel>(); foreach (var m in movies) { MovieListModel newMovie = new MovieListModel() { AvgUserRating = m.AvgUserRating, ID = m.ID, Title = m.Title }; var movie = await mm.GetMovie(m.ID); newMovie.Poster = movie.Poster; listMovies.Add(newMovie); } return(View(listMovies.ToPagedList(page ?? 1, 12))); }