Пример #1
0
        public ActionResult Index(int?page = 1)
        {
            NewsViewModel model = new NewsViewModel();

            model.NewsPaged = new MvcPaging.PagedList <News>(_newsMgr.GetNewsQueryable(), page.Value, 20);
            return(View(model));
        }