Exemplo n.º 1
0
 public static UserResponse Of(User user)
 => new UserResponse(
     id: user.Id,
     userName: user.UserName,
     userFullName: user.UserFullName,
     email: user.Email.Value,
     phone: user.Phone.Value,
     address: AddressResponse.Of(user.Address)
     );
Exemplo n.º 2
0
 public UserResponse(Guid id, string userName, string userFullName, string email, AddressResponse address, string phone)
 {
     Id           = id;
     UserName     = userName;
     UserFullName = userFullName;
     Email        = email;
     Address      = address;
     Phone        = phone;
 }