Пример #1
0
 public static int AddCustomer(Customer cnew)
 {
     try
     {
         int i = CustomerAccessor.NewCustomer(cnew);
         if (i != 0)
         {
             return(i);
         }
         else
         {
             throw new ApplicationException("Record not updated! An error occured.");
             //throw new ApplicationException(i.ToString());
         }
     }
     catch (Exception)
     {
         throw;
     }
 }