예제 #1
0
 public User CreateUser(UserFactoryDto userDto)
 {
     if (userDto == null)
     {
         throw new ArgumentNullException(nameof(userDto));
     }
     return(new User(userDto));
 }
예제 #2
0
 internal User(UserFactoryDto userDto)
     : this(userDto.Id, userDto.Tenant)
 {
     Role = userDto.Role;
 }