Exemple #1
0
 public static async Task <PagedResult <T> > PaginateAsync <T>(this IQueryable <T> queryable, PagedQueryBase query)
 => await queryable.PaginateAsync(query.PageNum, query.PageSize);
Exemple #2
0
 public static IQueryable <T> Limit <T>(this IQueryable <T> collection, PagedQueryBase query)
 => collection.Limit(query.PageSize, query.PageNum);