Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }