public ActionResult MainMoviesList() { var mainMovieList = new MainMoviesListViewModel() { MainMovieList = _mainMovieDataProvider.GetAllMainMovies() }; return(PartialView(mainMovieList)); }
public ViewResult ViewBestChoiceMovies(int?page) { var hotMovies = _mainMovieDataProvider.GetAllMainMovies(); int pageSize = 10; int pageNumber = (page ?? 1); return(View(new ViewBestChoiceMoviesViewModel() { MainMovies = hotMovies.ToPagedList(pageNumber, pageSize) } )); }