예제 #1
0
        public async Task <IActionResult> GetUserById(int id)
        {
            var users = await _userUseCase.GetUserById(id);

            var userDto  = _mapper.Map <UserDto>(users);
            var response = new ApiResponse <UserDto>(userDto);

            return(Ok(response));
        }
        public UsersModel GetUserById(int userId)
        {
            var userModel = new UsersModel(_userUseCase.GetUserById(userId));

            return(userModel);
        }