public ShoppingCartController(IMusicStoreContext storeContext)
 {
     this.storeContext = storeContext;
 }
Ejemplo n.º 2
0
 public OrderRespository(IMusicStoreContext db)
 {
     _db        = db;
     _dbContext = _db.GetDbContext();
 }
Ejemplo n.º 3
0
 public CheckoutController(IMusicStoreContext storeContext)
 {
     this.storeContext = storeContext;
 }
Ejemplo n.º 4
0
 public RegionDDLRespository(IMusicStoreContext db)
 {
     _db        = db;
     _dbContext = _db.GetDbContext();
 }
Ejemplo n.º 5
0
 public AlbumRespository(IMusicStoreContext db)
 {
     _db        = db;
     _dbContext = db.GetDbContext();
 }
Ejemplo n.º 6
0
 public HomeController(IMusicStoreContext storeContext)
 {
     this.storeContext = storeContext;
 }
        private IMusicStoreContext storeContext; // = new MusicStoreEntities();

        #endregion Fields

        #region Constructors

        public StoreManagerController(IMusicStoreContext storeContext)
        {
            this.storeContext = storeContext;
        }
Ejemplo n.º 8
0
 public static ShoppingCart GetCart(HttpContextBase httpContext, IMusicStoreContext storeContext)
 {
     var cart = new ShoppingCart(storeContext);
     cart.shoppingCartId = cart.GetCartId(httpContext);
     return cart;
 }
Ejemplo n.º 9
0
 private ShoppingCart(IMusicStoreContext storeContext)
 {
     this.storeContext = storeContext;
 }
Ejemplo n.º 10
0
 // This constructor is used by the MVC framework to instantiate the controller using
 // the default forms authentication and membership providers.
 public AccountController(IMusicStoreContext storeContext)
     : this(null, null)
 {
     this.storeContext = storeContext;
 }