예제 #1
0
        public async Task <ActionResult <ListResponseDto <UserListDto> > > Index()
        {
            var identity = User.Identity as ClaimsIdentity;
            var userId   = long.Parse(identity.FindFirst(ClaimTypes.NameIdentifier).Value);
            var request  = new ListRequestDto <UserListRequestDto>();

            request.Search = new UserListRequestDto
            {
                UserId = userId
            };
            var result = await _userQuery.List(request);

            return(Ok(result));
        }