示例#1
0
 public void CloneFrom(Customer customer)
 {
     ID = customer.ID;
     Name = customer.Name;
     PrimaryPhone = customer.PrimaryPhone;
     Website = customer.Website;
     PrimaryAddress.CloneFrom(customer.PrimaryAddress);
 }
 protected BaseEditCustomerViewModel(string customerId)
 {
     Customer = new Customer();
     if (customerId != null)
     {
         var original = DataStore.GetCustomer(customerId);
         Customer.CloneFrom(original);
     }
 }