Exemple #1
0
 public bool Insert(PaymentMethod paymentmethod)
 {
     int autonumber = 0;
     PaymentMethodDAC paymentmethodComponent = new PaymentMethodDAC();
     bool endedSuccessfuly = paymentmethodComponent.InsertNewPaymentMethod( ref autonumber,  paymentmethod.Name);
     if(endedSuccessfuly)
     {
         paymentmethod.PaymentMethodID = autonumber;
     }
     return endedSuccessfuly;
 }
Exemple #2
0
        public bool Insert( string Name)
        {
            PaymentMethodDAC paymentmethodComponent = new PaymentMethodDAC();
            int PaymentMethodID = 0;

            return paymentmethodComponent.InsertNewPaymentMethod( ref PaymentMethodID,  Name);
        }