Ejemplo n.º 1
0
 public async Task <Maybe <PagedResult <T> > > BrowseTagsAsync <T>(BrowseTags query)
     where T : class
 {
     Logger.Debug("Requesting BrowseTagsAsync");
     return(await _serviceClient
            .GetCollectionAsync <T>(_name, "remarks/tags"));
 }
Ejemplo n.º 2
0
        public static IMongoQueryable <Tag> Query(this IMongoCollection <Tag> tags,
                                                  BrowseTags query)
        {
            var values = tags.AsQueryable();

            return(values);
        }
Ejemplo n.º 3
0
 public async Task <Maybe <PagedResult <Tag> > > BrowseAsync(BrowseTags query)
 => await _database.Tags()
 .Query(query)
 .PaginateAsync(query);
Ejemplo n.º 4
0
 public async Task <Maybe <PagedResult <dynamic> > > BrowseTagsAsync(BrowseTags query)
 => await BrowseTagsAsync <dynamic>(query);
Ejemplo n.º 5
0
 public async Task <IActionResult> Get([FromQuery] BrowseTags query)
 => Collection(await _tagsService.BrowseAsync(query));
 public async Task <Maybe <PagedResult <Tag> > > BrowseTagsAsync(BrowseTags query)
 => await _provider.GetCollectionAsync(
     async() => await _tagRepository.BrowseAsync(query),
     async() => await _serviceClient.BrowseTagsAsync <Tag>(query));
 public async Task <Maybe <PagedResult <Tag> > > BrowseTagsAsync(BrowseTags query)
 => await _tagRepository.BrowseAsync(query);