|
|
|
@ -32,9 +32,14 @@ namespace Volo.Abp.Identity.MongoDB
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task<List<IdentityClaimType>> GetListAsync(string sorting, int maxResultCount, int skipCount)
|
|
|
|
|
public async Task<List<IdentityClaimType>> GetListAsync(string sorting, int maxResultCount, int skipCount, string filter)
|
|
|
|
|
{
|
|
|
|
|
return await GetMongoQueryable()
|
|
|
|
|
.WhereIf<IdentityClaimType, IMongoQueryable<IdentityClaimType>>(
|
|
|
|
|
!filter.IsNullOrWhiteSpace(),
|
|
|
|
|
u =>
|
|
|
|
|
u.Name.Contains(filter)
|
|
|
|
|
)
|
|
|
|
|
.OrderBy(sorting ?? nameof(IdentityClaimType.Name))
|
|
|
|
|
.As<IMongoQueryable<IdentityClaimType>>()
|
|
|
|
|
.PageBy<IdentityClaimType, IMongoQueryable<IdentityClaimType>>(skipCount, maxResultCount)
|
|
|
|
|