Exemple #1
0
 public PagedList<RegisteredUser> List(ListInputModel input)
 {
     var pager = new Pager(input == null ? input.Page : null, 24, 6);
     PagedList<RegisteredUser> RegisteredUserList = InMemoryDataService.GetAll(pager);
     return RegisteredUserList;
 }
Exemple #2
0
 public string ListPage(ListInputModel input)
 {
     var pager = new Pager(input.Page, 24, 6);
     PagedList<RegisteredUser> RegisteredUserList = InMemoryDataService.GetAll(pager);
     return JsonUtil.ToJson(RegisteredUserList);
 }
Exemple #3
0
 public PagedList(Pager pager, List <T> data, int totalRecords)
 {
     PagedInfo = new PagedInfo(pager, totalRecords);
     Data      = data;
 }