// Made by Helena Madsen /// <summary> /// Inserts a subscription ID and Category ID into a database column containing foreign keys /// </summary> /// <param name="input"></param> /// <returns></returns> public static bool InsertSubscriptionWCategory(SubscribedToCategory input) { DBInsert dBInsert = new DBInsert(); return(dBInsert.InsertSubscriptionWCategory(input)); }
// Made by Mikkel E.R. Glerup /// <summary> /// Inserts a subscription into the database /// </summary> /// <param name="input"></param> /// <returns></returns> public static bool InsertSubscription(Subscription input) { DBInsert dBInsert = new DBInsert(); return(dBInsert.InsertSubscription(input)); }
//Made by Helena Madsen /// <summary> /// Inserts a product into the database /// </summary> /// <param name="input"></param> /// <returns></returns> public static bool InsertProduct(Product input) { DBInsert dBInsert = new DBInsert(); return(dBInsert.InsertProduct(input)); }
//Made by Mikkel E.R. Glerup /// <summary> /// Inserts a customer into database /// </summary> /// <param name="input"></param> /// <returns></returns> public static bool InsertCustomer(Customer input) { DBInsert dBInsert = new DBInsert(); return(dBInsert.InsertCustomer(input)); }
// Made by Mikkel E.R. Glerup /// <summary> /// Creates a deal for a category /// </summary> /// <param name="deal"></param> /// <returns></returns> public static bool InsertDealCategory(Deals deal) { DBInsert dBInsert = new DBInsert(); return(dBInsert.InsertDealCategory(deal)); }
// Made by Mikkel E.R. Glerup /// <summary> /// Creates a deal for a product /// </summary> /// <param name="deal"></param> /// <returns></returns> public static bool InsertDealProduct(Deals deal) { DBInsert dBInsert = new DBInsert(); return(dBInsert.InsertDealProduct(deal)); }