Ejemplo n.º 1
0
        // 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);
        }
Ejemplo n.º 2
0
 public ShoppingCartManager(InterfaceSessionManager Session, DemoShopContext db)
 {
     this.db      = db;
     this.Session = Session;
 }