AllowedPageSize() public method

public AllowedPageSize ( int maxSize ) : int
maxSize int
return int
コード例 #1
0
 private static PaginationInfo CreatePageInfo(PageRequest paging, IEnumerable<Widget> all)
 {
     return new PaginationInfo(
         paging.Page,
         paging.AllowedPageSize(MaxPageSizeFromImaginaryConfiguration),
         all.Count());
 }
コード例 #2
0
 private static IList<Widget> PageData(PageRequest paging, IEnumerable<Widget> data)
 {
     return data.Page(paging.AllowedPageSize(MaxPageSizeFromImaginaryConfiguration), paging.Page).ToList();
 }