public static PagedList <T> BuildFromCompleteList(List <T> allItems) { var result = new PagedList <T> { PageItems = allItems, _paginationStats = PaginationStats.SinglePage(allItems.Count) }; return(result); }
public PagedList(List <T> allItems) { PageItems = allItems; _paginationStats = PaginationStats.SinglePage(allItems.Count); }