Beispiel #1
0
        // 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));
        }
Beispiel #2
0
        // 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));
        }
Beispiel #3
0
        //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));
        }
Beispiel #4
0
        //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));
        }
Beispiel #5
0
        // 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));
        }
Beispiel #6
0
        // 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));
        }