Exemplo n.º 1
0
 public static IMongoQueryable <T> Limit <T>(this IMongoQueryable <T> collection, PagedQueryBase query)
 => collection.Limit(query.Page, query.Results);
Exemplo n.º 2
0
 public static async Task <PagedResult <T> > PaginateAsync <T>(this IMongoQueryable <T> collection, PagedQueryBase query)
 => await collection.PaginateAsync(query.Page, query.Results);