public static IMongoQueryable <Group> Query(this IMongoCollection <Group> groups,
                                                    BrowseGroups query)
        {
            var values = groups.AsQueryable();

            return(values.OrderBy(x => x.Name));
        }
 public async Task <Maybe <PagedResult <Group> > > BrowseAsync(BrowseGroups query)
 => await _provider.GetCollectionAsync(async() => await _groupRepository.BrowseAsync(query));
Esempio n. 3
0
 public async Task <Maybe <PagedResult <Group> > > BrowseAsync(BrowseGroups query)
 => await _database.Groups().Query(query).PaginateAsync(query);
Esempio n. 4
0
 public async Task <Maybe <PagedResult <Group> > > BrowseAsync(BrowseGroups query)
 => await _storageClient.GetFilteredCollectionAsync <Group, BrowseGroups>(query, "groups");
Esempio n. 5
0
 public async Task <Maybe <PagedResult <Group> > > BrowseAsync(BrowseGroups query)
 => await _groupRepository.BrowseAsync(query);