public void CreatePayment(int activeCustomerId) { var db = new PaymentQueries(); var payment = new PaymentCreationModel(); payment.Type = GetPaymentType(); payment.AccountNumber = GetAccountNumber(); payment.CustomerId = activeCustomerId; db.AddPayment(payment.Type, payment.AccountNumber, payment.CustomerId); }
public void CreatePayment(ActiveCustomer selectedCustomer) { var db = new InsertPaymentQuery(); var payment = new PaymentCreationModel(); payment.Type = GetPaymentType(selectedCustomer); payment.AccountNumber = GetAccountNumber(); payment.CustomerId = selectedCustomer.CustomerId; db.InsertPayment(payment.Type, payment.AccountNumber, payment.CustomerId); }