示例#1
0
        public static PagedList <T> BuildUsingPageNumber(int totalNumberOfItems, int pageSize, int pageNumber)
        {
            var result = new PagedList <T>
            {
                _paginationStats = PaginationStats.FromPageNumber(totalNumberOfItems, pageSize, pageNumber)
            };

            return(result);
        }
示例#2
0
 public PagedList(int totalNumberOfItems, int pageSize, int pageNumber)
 {
     _paginationStats = PaginationStats.FromPageNumber(totalNumberOfItems, pageSize, pageNumber);
 }