Пример #1
0
        public async Task <PageList <Party> > GetPartyList(BaseParameter para)
        {
            var list = _db.Party
                       .OrderByDescending(p => p.PartyDate)
                       .AsQueryable();

            return(await PageList <Party> .CreateAsync(list, para.PageNumber, para.PageSize));
        }
Пример #2
0
        public async Task <PageList <Member> > GetMemberList(BaseParameter para)
        {
            var list = _db.Member
                       .Include(x => x.MemberPhoto)
                       .OrderByDescending(x => x.UserId)
                       .AsQueryable();

            return(await PageList <Member> .CreateAsync(list, para.PageNumber, para.PageSize));
        }