Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public PagedList(int totalNumberOfItems, int pageSize, int pageNumber)
 {
     _paginationStats = PaginationStats.FromPageNumber(totalNumberOfItems, pageSize, pageNumber);
 }