コード例 #1
0
        public static ShoppingCart GetCart(MusicStoreEntities db, HttpContextBase context)
        {
            var cart = new ShoppingCart(db);

            cart.ShoppingCartId = cart.GetCartId(context);
            return(cart);
        }
コード例 #2
0
 // Helper method to simplify shopping cart calls
 public static ShoppingCart GetCart(MusicStoreEntities db, Controller controller)
 {
     return GetCart(db, controller.HttpContext);
 }
コード例 #3
0
 public static ShoppingCart GetCart(MusicStoreEntities db, HttpContextBase context)
 {
     var cart = new ShoppingCart(db);
     cart.ShoppingCartId = cart.GetCartId(context);
     return cart;
 }
コード例 #4
0
 public ShoppingCart(MusicStoreEntities db)
 {
     _db = db;
 }
コード例 #5
0
 // Helper method to simplify shopping cart calls
 public static ShoppingCart GetCart(MusicStoreEntities db, Controller controller)
 {
     return(GetCart(db, controller.HttpContext));
 }
コード例 #6
0
 public ShoppingCart(MusicStoreEntities db)
 {
     _db = db;
 }