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)); }
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)); }