예제 #1
0
 public static int UpdateCustomer(Customer cold, Customer cnew)
 {
     try
     {
         int i = CustomerAccessor.SetCustomer(cold, cnew);
         if (i != 0)
         {
             return(i);
         }
         else
         {
             throw new ApplicationException("Record not updated! An error occured.");
             //throw new ApplicationException(i.ToString());
         }
     }
     catch (Exception)
     {
         throw;
     }
 }