コード例 #1
0
        public static string AddtoShoppingCart(int fld_offeredserviceid, int fld_userid)
        {
            //Check eerst of de service al in de shoppingcart zit
            //zet het voor nu ff op false
            bool foundService = MollShopContext.CheckShoppingCartItem(fld_offeredserviceid, fld_userid);

            if (!foundService)
            {
                //Service zit nog niet in de shoppingcart.
                ShoppingCartItem item = new ShoppingCartItem();
                item.fld_offeredServiceId = fld_offeredserviceid;
                item.fld_UserId           = fld_userid;
                try
                {
                    MollShopContext.CreateRow(item, "tbl_shoppingcart");
                }

                catch (Exception e)
                {
                }
            }

            return("hey");
        }