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) );
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; }