public ClientListModel(IPagedList <ClientDto> list, ClientListFiltersModel filters) { List = list; Filters = filters; }
public ActionResult Index(ClientListFiltersModel filters) { int pageTotal; var clients = _clientService.GetAll("CreatedDate", "DESC", filters.Criteria, filters.Page, DefaultPageSize, out pageTotal); var pagedList = new StaticPagedList<ClientDto>(clients, filters.Page, DefaultPageSize, pageTotal); var listModel = new ClientListModel(pagedList, filters); return View(listModel); }
public ClientListModel(IPagedList<ClientDto> list, ClientListFiltersModel filters) { List = list; Filters = filters; }