예제 #1
0
 public ClientListModel(IPagedList <ClientDto> list, ClientListFiltersModel filters)
 {
     List    = list;
     Filters = filters;
 }
예제 #2
0
        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);
        }
예제 #3
0
 public ClientListModel(IPagedList<ClientDto> list, ClientListFiltersModel filters)
 {
     List = list;
     Filters = filters;
 }