internal static void RemoveOrders(Order o, P1Context DB) { DB.Orders.Remove(o); DB.SaveChanges(); }
internal static void RemoveBilling(Billing b, P1Context DB) { DB.BillingInformation.Remove(b); DB.SaveChanges(); }
internal static void UpdateDefaultLocation(DefaultLocation dl, P1Context DB) { DB.DefaultLocations.Update(dl); DB.SaveChanges(); }
internal static void UpdateProduct(Product p, P1Context DB) { DB.Products.Update(p); DB.SaveChanges(); }
internal static void AddBilling(Billing b, P1Context DB) { DB.BillingInformation.Add(b); DB.SaveChanges(); }
public static void AddCustomer(Customer c, P1Context DB) { DB.Customers.Add(c); DB.SaveChanges(); }
internal static void RemoveCustomer(Customer c, P1Context DB) { DB.Customers.Remove(c); DB.SaveChanges(); }
internal static void AddShippingInformation(Shipping info, P1Context DB) { DB.ShippingInformation.Add(info); DB.SaveChanges(); }
internal static void UpdateShippingInformation(Shipping info, P1Context DB) { DB.ShippingInformation.Update(info); DB.SaveChanges(); }
internal static void UpdateOrderProducts(OrderProducts op, P1Context DB) { DB.OrderProducts.Update(op); DB.SaveChanges(); }
internal static void RemoveOrderProducts(OrderProducts op, P1Context DB) { DB.OrderProducts.Remove(op); DB.SaveChanges(); }
internal static void AddOrderProducts(OrderProducts op, P1Context DB) { DB.OrderProducts.Add(op); DB.SaveChanges(); }
internal static void RemoveCustomersShipping(CustomerShipping cs, P1Context DB) { DB.CustomersShipping.Remove(cs); DB.SaveChanges(); }
internal static void AddCustomerShipping(CustomerShipping cs, P1Context DB) { DB.CustomersShipping.Add(cs); DB.SaveChanges(); }
internal static void UpdateUserAccount(UserAccount user, P1Context DB) { DB.UserAccounts.Update(user); DB.SaveChanges(); }
internal static void RemoveUserShippingInformation(Shipping info, P1Context DB) { DB.ShippingInformation.Remove(info); DB.SaveChanges(); }
internal static void RemoveUserAccount(UserAccount user, P1Context DB) { DB.UserAccounts.Remove(user); DB.SaveChanges(); }
internal static void AddCustomerBilling(CustomerBilling cb, P1Context DB) { DB.CustomersBilling.Add(cb); DB.SaveChanges(); }
internal static void UpdateCustomer(Customer c, P1Context DB) { DB.Customers.Update(c); DB.SaveChanges(); }
internal static void RemoveCustomerBilling(CustomerBilling cb, P1Context DB) { DB.CustomersBilling.Remove(cb); DB.SaveChanges(); }
internal static void AddProduct(Product p, P1Context DB) { DB.Products.Add(p); DB.SaveChanges(); }
internal static void AddLocationProducts(LocationProducts lp, P1Context DB) { DB.LocationProducts.Add(lp); DB.SaveChanges(); Thread.Sleep(500); }
internal static void RemoveProduct(Product p, P1Context DB) { DB.Products.Remove(p); DB.SaveChanges(); }
internal static void UpdateLocationProducts(LocationProducts lp, P1Context DB) { DB.LocationProducts.Update(lp); DB.SaveChanges(); }
internal static void UpdateBilling(Billing b, P1Context DB) { DB.BillingInformation.Update(b); DB.SaveChanges(); }
internal static void RemoveLocationProducts(LocationProducts lp, P1Context DB) { DB.LocationProducts.Remove(lp); DB.SaveChanges(); }
internal static void AddDefaultLocation(DefaultLocation dl, P1Context DB) { DB.DefaultLocations.Add(dl); DB.SaveChanges(); }
public static void AddUserAccount(UserAccount user, P1Context DB) { DB.UserAccounts.Add(user); DB.SaveChanges(); }
internal static void RemoveDefaultLocation(DefaultLocation dl, P1Context DB) { DB.DefaultLocations.Remove(dl); DB.SaveChanges(); }
internal static void UpdateOrders(Order o, P1Context DB) { DB.Orders.Update(o); DB.SaveChanges(); }