Пример #1
0
        public ActionResult Index(BarnListFiltersModel filters)
        {
            int pageTotal;

            var barns = _barnService.GetAll("CreatedDate", "DESC", filters.Criteria, filters.Page, DefaultPageSize, out pageTotal);

            var pagedList = new StaticPagedList<BarnDto>(barns, filters.Page, DefaultPageSize, pageTotal);

            var listModel = new BarnListModel(pagedList, filters);

            return View(listModel);
        }
Пример #2
0
 public BarnListModel(IPagedList <BarnDto> list, BarnListFiltersModel filters)
 {
     List    = list;
     Filters = filters;
 }
Пример #3
0
 public BarnListModel(IPagedList<BarnDto> list, BarnListFiltersModel filters)
 {
     List = list;
     Filters = filters;
 }