Browse Source
Update docs/en/UI/Angular/List-Service.md
Co-authored-by: Qingxiao Ren <rqx110@163.com>
pull/15847/head
Barış Can Yılmaz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
docs/en/UI/Angular/List-Service.md
|
|
|
@ -225,8 +225,8 @@ public interface IBookAppService : |
|
|
|
|
|
|
|
public override async Task<PagedResultDto<BookDto>> GetListAsync(BookRequestDto input) |
|
|
|
{ |
|
|
|
var query=await ReadOnlyRepository.GetQueryableAsync(); |
|
|
|
query.WhereIf(!string.IsNullOrEmpty(input.Filter),x=>x.Name.Contains(input.Filter)); |
|
|
|
var queryable = await ReadOnlyRepository.GetQueryableAsync(); |
|
|
|
var query = queryable.WhereIf(!string.IsNullOrEmpty(input.Filter), x => x.Name.Contains(input.Filter)); |
|
|
|
|
|
|
|
var totalCount = await AsyncExecuter.CountAsync(query); |
|
|
|
var items = await AsyncExecuter.ToListAsync(query); |
|
|
|
|