예제 #1
0
        public virtual async Task <PagedResultDto <IdentityResourceDto> > GetAsync(IdentityResourceGetByPagedInputDto identityResourceGetByPaged)
        {
            var identityResources = await IdentityResourceRepository.GetListAsync(identityResourceGetByPaged.Sorting,
                                                                                  identityResourceGetByPaged.SkipCount, identityResourceGetByPaged.MaxResultCount,
                                                                                  identityResourceGetByPaged.Filter, true);

            var identityResourceCount = await IdentityResourceRepository.GetCountAsync();

            return(new PagedResultDto <IdentityResourceDto>(identityResourceCount,
                                                            ObjectMapper.Map <List <IdentityResource>, List <IdentityResourceDto> >(identityResources)));
        }
예제 #2
0
 public virtual async Task <PagedResultDto <IdentityResourceDto> > GetAsync(IdentityResourceGetByPagedInputDto identityResourceGetByPaged)
 {
     return(await IdentityResourceAppService.GetAsync(identityResourceGetByPaged));
 }