// GET: ShoppingCard public ShoppingCartController(IMailService mailService, InterfaceSessionManager sessionManager) //public ShoppingCartController() { this.sessionManager = sessionManager; this.mailService = mailService; //this.sessionManager = new SessionManager(); //this.mailService = new HangFirePostalIMailService(); this.interfaceSessionManager = new SessionManager(); this.shoppingCartManager = new ShoppingCartManager(this.interfaceSessionManager, this.db); }
public ShoppingCartManager(InterfaceSessionManager Session, DemoShopContext db) { this.db = db; this.Session = Session; }