public static ShoppingCart GetCart(HttpContextBase context)
        {
            var cart = new ShoppingCart();

            cart.ShoppingCartId = cart.GetCartId(context);
            return(cart);
        }
        /// <summary>
        /// Lấy giỏ hàng từ user
        /// </summary>
        /// <param name="context">HTTP Request</param>
        /// <returns>Giỏ hàng</returns>
        public static ShoppingCart GetCart(HttpContextBase context, IMusicStoreEntities dbContext)
        {
            var cart = new ShoppingCart(dbContext);

            cart.ShoppingCartId = cart.GetCartId(context);
            return(cart);
        }
Exemple #3
0
 public static ShoppingCart GetCart(HttpContextBase context)
 {
     var cart = new ShoppingCart();
     cart.ShoppingCartId = cart.GetCartId(context);
     return cart;
 }