public void Init(string customerId = null)
 {
     Customer = new Customer();
     if (customerId != null)
     {
         var original = DataStore.GetCustomer(customerId);
         Customer.CloneFrom(original);
     }
 }
Exemplo n.º 2
0
 protected BaseEditCustomerViewModel(string customerId)
 {
     Customer = new Customer();
     if (customerId != null)
     {
         var original = DataStore.GetCustomer(customerId);
         Customer.CloneFrom(original);
     }
 }