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