예제 #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);
 }
예제 #2
0
파일: Invoice.cs 프로젝트: rtennys/Toph
 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);
 }