Exemplo n.º 1
0
 public OnlineController(IStoreContract storeContract,
                         IStorageContract storageContract,
                         IGalleryContract galleryContract,
                         IInventoryContract inventoryContract,
                         IStoreCartContract storeCartContract,
                         IProductContract prodcutContract,
                         IAdministratorContract administratorContract,
                         IStoreCartItemContract storeCartItemContract,
                         IColorContract colorContract,
                         IOnlinePurchaseProductContract oppContract,
                         IProductContract productContract,
                         IProductOrigNumberContract _productOrigNumberContract,
                         IStoreTypeContract _storeTypeContract,
                         IBrandContract _brandContract,
                         ICategoryContract categoryContract)
 {
     _storeContract   = storeContract;
     _storageContract = storageContract;
     //_galleryContract = galleryContract;
     //_inventoryContract = inventoryContract;
     _storeCartContract              = storeCartContract;
     _productContract                = prodcutContract;
     _storeCartItemContract          = storeCartItemContract;
     _colorContract                  = colorContract;
     _categoryContract               = categoryContract;
     _oppContract                    = oppContract;
     this._brandContract             = _brandContract;
     this._administratorContract     = administratorContract;
     this._productOrigNumberContract = _productOrigNumberContract;
     ViewBag.Color                   = _colorContract.ParentSelectList("请选择");
     ViewBag.Category                = CacheAccess.GetCategory(_categoryContract, true);
     ViewBag.Brand                   = CacheAccess.GetBrand(_brandContract, true);
     this._storeTypeContract         = _storeTypeContract;
 }
 public OnlinePurchaseProductController(IOnlinePurchaseProductContract onlinePurchaseProductContract,
                                        IProductContract productContract,
                                        IBrandContract brandContract,
                                        ICategoryContract categoryContract,
                                        IColorContract colorContract,
                                        IStoreContract storeContract,
                                        INotificationContract notificationContract
                                        )
 {
     _onlinePurchaseProductContract = onlinePurchaseProductContract;
     _productContract      = productContract;
     _brandContract        = brandContract;
     _categoryContract     = categoryContract;
     _colorContract        = colorContract;
     _storeContract        = storeContract;
     _notificationContract = notificationContract;
 }