public Customer(InvoiceCustomer customer) { Name = customer == null ? "Costomer not set" : customer.Name; Address = customer == null ? new AddressModel() : new AddressModel(customer.Line1, customer.Line2, customer.City, customer.State, customer.PostalCode); }
public virtual void UpdateCustomer(string name, string line1, string line2, string city, string state, string postalCode) { InvoiceCustomer = new InvoiceCustomer(name, line1, line2, city, state, postalCode); }