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); }
public BarnListModel(IPagedList <BarnDto> list, BarnListFiltersModel filters) { List = list; Filters = filters; }
public BarnListModel(IPagedList<BarnDto> list, BarnListFiltersModel filters) { List = list; Filters = filters; }