internal static void AddNewCardInformationToUser(Billing CardInfoEntered, Customer CurrentCustomer) { using (var DB = new P0Context()) { BillingDAO.AddBilling(CardInfoEntered, DB); CustomerBilling CB = new CustomerBilling { CustomerID = CurrentCustomer.CustomerID, BillingID = CardInfoEntered.BillingID }; CustomerBillingDAO.AddCustomerBilling(CB, DB); } }
internal static void AddNewCardInformationToUser(Billing CardInfoEntered, Customer CurrentCustomer, P1Context _context) { var DB = _context; BillingDAO.AddBilling(CardInfoEntered, DB); CustomerBilling CB = new CustomerBilling { CustomerID = CurrentCustomer.CustomerID, BillingID = CardInfoEntered.BillingID }; CustomerBillingDAO.AddCustomerBilling(CB, DB); }