Esempio n. 1
0
 /// <summary>
 /// The Save method adds the Customer (this) object to the internal data structure.
 /// </summary>
 public void Save()
 {
     if (this.customerID > 0)
     {
         DataCustomer.Update(this);
     }
     else
     {
         this.customerID = DataCustomer.Add(this);
     }
 }