public static PageModel <T> Page <T>(
     this IEnumerable <T> source,
     PaginationQueryParams queryParams)
     where T : class
 {
     return(source.Page(queryParams.PageIndex, queryParams.PageSize));
 }
Пример #2
0
 public static Task <PageModel <T> > PageAsync <T>(
     this IQueryable <T> source,
     PaginationQueryParams queryParams)
     where T : class
 {
     return(source.PageAsync(queryParams.PageIndex, queryParams.PageSize));
 }