Exemplo n.º 1
0
        /// <summary>
        /// Function to update the shopping cart
        /// </summary>
        /// <param name="shoppingList">Passing list of name-value pair containing the productID and its quantity</param>
        public string UpdateShoppingCart(Dictionary <string, int> shoppingList)
        {
            string shoppingCartString = String.Empty;

            try
            {
                if (shoppingList.Count > 0)
                {
                    shoppingCartString = CreateShoppingCartCookie(shoppingList);
                }
            }
            catch (Exception ex)
            {
                objDAL.LogError(ex.Message, ex.StackTrace);
            }

            return(shoppingCartString);
        }