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) )); }
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) )); }
public virtual Task <PagedResultDto <IdentityRoleDto> > GetListAsync(GetIdentityRolesInput input) { return(_roleAppService.GetListAsync(input)); }