public void SetAddress(BankAddress address) { if (address == null) { return; } Line1 = address.Line1; Line2 = address.Line2; Zipcode = address.Zipcode; City = address.City; Country = address.Country; }
public BankAccount(Guid id, string name, string owner, string iban, string bic, BankAddress address, User user) : base(id, name, PaymentKind.BankAccount, user) { IBAN = iban; BIC = bic; Owner = owner; Line1 = address.Line1; Line2 = address.Line2; Zipcode = address.Zipcode; City = address.City; Country = address.Country; }