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); }
public static ShoppingCart GetCart(HttpContextBase context) { var cart = new ShoppingCart(); cart.ShoppingCartId = cart.GetCartId(context); return cart; }