public static IQueryable <T> Limit <T>(this IQueryable <T> table, PagedQueryBase query) => table.Limit(query.Page, query.Results);
public static async Task <PagedResult <T> > PaginateAsync <T>(this IQueryable <T> table, PagedQueryBase query) => await table.PaginateAsync(query.Page, query.Results);