public UserDTO GetUserById(string userId) { User user = userProfile.GetUserById(userId); return(user != null ? converterToDTO.ConvertToUserDTO(user) : throw new ArgumentNullException()); }