示例#1
0
        public async Task <FilteredList <MemberDto, TestHeader> > GetMembersTestFilterAsync(TestParams testParams)
        {
            var userAdminDtos = _context.Users
                                .OrderBy(u => u.LastActive)
                                .ProjectTo <MemberDto>(_mapper.ConfigurationProvider);

            return(await FilteredList <MemberDto, TestHeader> .CreateAsync(userAdminDtos, testParams, _mapper));
        }
示例#2
0
        public async Task <FilteredList <UserAdminDto> > GetUsersAsync(FiltrationParams filtrationParams)
        {
            var userAdminDtos = _context.Users
                                .Where(u => u.Created <= filtrationParams._timeStamp)
                                .OrderBy(u => u.LastActive)
                                .ProjectTo <UserAdminDto>(_mapper.ConfigurationProvider);

            return(await FilteredList <UserAdminDto> .CreateAsync(userAdminDtos, filtrationParams, _mapper));
        }