public void insertPaymentTypes(String paymentType) { PaymentTypes p = PaymentTypeFactory.createPaymentType(paymentType); db.PaymentTypes.Add(p); db.SaveChanges(); }
public static Boolean insertPaymentType(string type) { PaymentType pt = PaymentTypeFactory.createPaymentType(type); db.PaymentTypes.Add(pt); db.SaveChanges(); return(true); }
public static void insertPaymentType(String type) { PaymentType newPaymentType = PaymentTypeFactory.createPaymentType(type); PaymentTypeRepository.insertPaymentType(newPaymentType); }
public static void add(String type) { PaymentTypeRepo.add(PaymentTypeFactory.createPaymentType(type)); }
public static PaymentType createPaymentType(String paymentTypeName) { return(PaymentTypeFactory.createPaymentType(paymentTypeName)); }
public static void add(String type) { PaymentType paymentType = PaymentTypeFactory.createPaymentType(type); PaymentTypeRepository.add(paymentType); }