Ejemplo n.º 1
0
        public async Task <PagedResultDto <IdentityClaimTypeDto> > GetListAsync(GetIdentityClaimTypeInput input)
        {
            var claimTypes = await ClaimTypeRepository.GetListAsync(input.Sorting, input.MaxResultCount,
                                                                    input.SkipCount,
                                                                    input.Filter);

            var totalCount = await ClaimTypeRepository.GetCountAsync();

            return(new PagedResultDto <IdentityClaimTypeDto>(totalCount,
                                                             ObjectMapper.Map <List <IdentityClaimType>, List <IdentityClaimTypeDto> >(claimTypes)));
        }
Ejemplo n.º 2
0
 public async Task <PagedResultDto <IdentityClaimTypeDto> > GetListAsync(GetIdentityClaimTypeInput input)
 {
     return(await ClaimTypeAppService.GetListAsync(input));
 }