예제 #1
0
        public async Task <ActionResult <IEnumerable <UserAdminDto> > > GetUsers([FromQuery] FiltrationParams filtrationParams)
        {
            var users = await _userRepository.GetUsersAsync(filtrationParams);

            Response.AddFiltrationHeader(users);

            return(users.Result);
        }
예제 #2
0
        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));
        }
예제 #3
0
        public async Task <ActionResult <IEnumerable <MemberDto> > > GetMembers([FromQuery] FiltrationParams filtrationParams)
        {
            var membersList = await _memberRepository.GetMembersAsync(filtrationParams);

            Response.AddFiltrationHeader(membersList);

            return(membersList.Result);
        }