/// <summary>Список фильмов</summary> public ActionResult Index(int?page) { ViewBag.UserId = User.Identity.GetUserId(); var movies = movieContext .Get() .OrderByDescending(e => e.CreatedDate); int pageSize = Config.PageSize; int pageNumber = (page ?? 1); return(View(movies.ToPagedList(pageNumber, pageSize))); }