Example #1
0
 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);
 }
Example #2
0
 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);
 }