Browse Source
Merge pull request #7114 from kamalseisy/dev
fix totalCount in IdentityRole GetList in case of using filter
pull/7131/head
maliming
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
modules/identity/src/Volo.Abp.Identity.Application/Volo/Abp/Identity/IdentityRoleAppService.cs
|
|
|
@ -40,7 +40,7 @@ namespace Volo.Abp.Identity |
|
|
|
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(); |
|
|
|
var totalCount = await RoleRepository.GetCountAsync(input.Filter); |
|
|
|
|
|
|
|
return new PagedResultDto<IdentityRoleDto>( |
|
|
|
totalCount, |
|
|
|
|