public ActionResult Index(ProviderListFiltersModel filters)
        {
            int pageTotal;

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

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

            var listModel = new ProviderListModel(pagedList, filters);

            return View(listModel);
        }
Example #2
0
 public ProviderListModel(IPagedList <ProviderDto> list, ProviderListFiltersModel filters)
 {
     List    = list;
     Filters = filters;
 }