コード例 #1
0
        public async Task <Paging <UserEntity> > GetPaging(string keyword, int pageIndex)
        {
            var query = await _userDomainService.GetAll();

            if (!string.IsNullOrEmpty(keyword))
            {
                query = query.Where(x => x.Email.Contains(keyword));
            }
            query = query.OrderBy(x => x.Id);

            return(await query.Paged(pageIndex));
        }