예제 #1
0
        public async Task <GetUserByIdDTO> Handle(GetUserByIdQuery request, CancellationToken cancellationToken)
        {
            var res = await _aspNetUserRepository.GetById(request.UserId);

            if (res == null)
            {
                throw new ArgumentException();
            }

            return(_mapper.Map <GetUserByIdDTO>(res));
        }