Exemple #1
0
        public virtual async Task <PagedResultDto <IdentityResourceDto> > GetListAsync(
            PagedAndSortedResultRequestDto input)
        {
            var list = await _resourceRepository.GetListAsync(input.Sorting, input.SkipCount,
                                                              input.MaxResultCount);

            var totalCount = await _resourceRepository.GetCountAsync();

            return(new PagedResultDto <IdentityResourceDto>(
                       totalCount,
                       ObjectMapper.Map <List <IdentityResource>, List <IdentityResourceDto> >(
                           list)
                       ));
        }