public async Task <UserOutput?> GetUser(string name) { var data = await _userReadOnlyRepository.GetUser(name); if (data == null) { throw new UserNotFoundException("Impossible to find user"); } return(new UserOutput(data)); }
private Task <User> GetUserById(Guid id) => _userReadOnlyRepository.GetUser(id);