public static ShoppingCart GetCart(MusicStoreEntities db, HttpContextBase context) { var cart = new ShoppingCart(db); cart.ShoppingCartId = cart.GetCartId(context); return(cart); }
// Helper method to simplify shopping cart calls public static ShoppingCart GetCart(MusicStoreEntities db, Controller controller) { return GetCart(db, controller.HttpContext); }
public static ShoppingCart GetCart(MusicStoreEntities db, HttpContextBase context) { var cart = new ShoppingCart(db); cart.ShoppingCartId = cart.GetCartId(context); return cart; }
public ShoppingCart(MusicStoreEntities db) { _db = db; }
// Helper method to simplify shopping cart calls public static ShoppingCart GetCart(MusicStoreEntities db, Controller controller) { return(GetCart(db, controller.HttpContext)); }