Exemplo n.º 1
0
        public async Task <PagedResultDto <IdentityRoleDto> > GetListAsync(GetIdentityRolesInput input) //TODO: Remove this method since it's not used
        {
            var count = (int)await _roleRepository.GetCountAsync();

            var list = await _roleRepository.GetListAsync();

            return(new PagedResultDto <IdentityRoleDto>(
                       count,
                       ObjectMapper.Map <List <IdentityRole>, List <IdentityRoleDto> >(list)
                       ));
        }
Exemplo n.º 2
0
        public virtual async Task <PagedResultDto <IdentityRoleDto> > GetListAsync(GetIdentityRolesInput input)
        {
            var list = await RoleRepository.GetListAsync(input.Sorting, input.MaxResultCount, input.SkipCount, input.Filter);

            var totalCount = await RoleRepository.GetCountAsync(input.Filter);

            return(new PagedResultDto <IdentityRoleDto>(
                       totalCount,
                       ObjectMapper.Map <List <IdentityRole>, List <IdentityRoleDto> >(list)
                       ));
        }
Exemplo n.º 3
0
 public virtual Task <PagedResultDto <IdentityRoleDto> > GetListAsync(GetIdentityRolesInput input)
 {
     return(_roleAppService.GetListAsync(input));
 }