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