public async Task <ActionResult <IEnumerable <UserAdminDto> > > GetUsers([FromQuery] FiltrationParams filtrationParams) { var users = await _userRepository.GetUsersAsync(filtrationParams); Response.AddFiltrationHeader(users); return(users.Result); }
public async Task <FilteredList <MemberDto> > GetMembersAsync(FiltrationParams filtrationParams) { var userAdminDtos = _context.Users .OrderBy(u => u.LastActive) .ProjectTo <MemberDto>(_mapper.ConfigurationProvider); return(await FilteredList <MemberDto> .CreateAsync(userAdminDtos, filtrationParams, _mapper)); }
public async Task <ActionResult <IEnumerable <MemberDto> > > GetMembers([FromQuery] FiltrationParams filtrationParams) { var membersList = await _memberRepository.GetMembersAsync(filtrationParams); Response.AddFiltrationHeader(membersList); return(membersList.Result); }