Example #1
0
        public void insertPaymentTypes(String paymentType)
        {
            PaymentTypes p = PaymentTypeFactory.createPaymentType(paymentType);

            db.PaymentTypes.Add(p);
            db.SaveChanges();
        }
Example #2
0
        public static Boolean insertPaymentType(string type)
        {
            PaymentType pt = PaymentTypeFactory.createPaymentType(type);

            db.PaymentTypes.Add(pt);
            db.SaveChanges();

            return(true);
        }
Example #3
0
        public static void insertPaymentType(String type)
        {
            PaymentType newPaymentType = PaymentTypeFactory.createPaymentType(type);

            PaymentTypeRepository.insertPaymentType(newPaymentType);
        }
Example #4
0
 public static void add(String type)
 {
     PaymentTypeRepo.add(PaymentTypeFactory.createPaymentType(type));
 }
 public static PaymentType createPaymentType(String paymentTypeName)
 {
     return(PaymentTypeFactory.createPaymentType(paymentTypeName));
 }
Example #6
0
        public static void add(String type)
        {
            PaymentType paymentType = PaymentTypeFactory.createPaymentType(type);

            PaymentTypeRepository.add(paymentType);
        }