public ShoppingCartController(IMusicStoreContext storeContext) { this.storeContext = storeContext; }
public OrderRespository(IMusicStoreContext db) { _db = db; _dbContext = _db.GetDbContext(); }
public CheckoutController(IMusicStoreContext storeContext) { this.storeContext = storeContext; }
public RegionDDLRespository(IMusicStoreContext db) { _db = db; _dbContext = _db.GetDbContext(); }
public AlbumRespository(IMusicStoreContext db) { _db = db; _dbContext = db.GetDbContext(); }
public HomeController(IMusicStoreContext storeContext) { this.storeContext = storeContext; }
private IMusicStoreContext storeContext; // = new MusicStoreEntities(); #endregion Fields #region Constructors public StoreManagerController(IMusicStoreContext storeContext) { this.storeContext = storeContext; }
public static ShoppingCart GetCart(HttpContextBase httpContext, IMusicStoreContext storeContext) { var cart = new ShoppingCart(storeContext); cart.shoppingCartId = cart.GetCartId(httpContext); return cart; }
private ShoppingCart(IMusicStoreContext storeContext) { this.storeContext = storeContext; }
// 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; }