コード例 #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;
 }