Esempio n. 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)));
        }
Esempio n. 2
0
 public virtual async Task <PagedResultDto <IdentityResourceDto> > GetAsync(IdentityResourceGetByPagedInputDto identityResourceGetByPaged)
 {
     return(await IdentityResourceAppService.GetAsync(identityResourceGetByPaged));
 }