Exemplo n.º 1
0
        public async Task <PagedResultDto <TagDto> > GetListAsync(TagListRequestDto input)
        {
            var totalCount = await _repository.GetCountAsync();

            var list = await _repository.GetListAsync(input.MaxResultCount, input.SkipCount, input.Sorting, input.Filter);

            return(new PagedResultDto <TagDto>(
                       totalCount,
                       ObjectMapper.Map <List <Tag>, List <TagDto> >(list)
                       ));
        }
Exemplo n.º 2
0
 public Task <PagedResultDto <TagDto> > GetListAsync(TagListRequestDto input)
 {
     return(_service.GetListAsync(input));
 }