Exemple #1
0
 /// <summary>
 /// update total
 /// </summary>
 /// <param name="total">total money</param>
 public void updateTotal(double total)
 {
     try
     {
         //update total charge
         currentInvoice.TotalCharge = total;
         //update total charge to database
         dataMaster.UpdateInvoiceTotal(currentInvoice);
     }
     catch (Exception ex)
     {
         //Throw a custom-trace exception
         throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." +
                             MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
     }
 }