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