public UmbracoApplicationCacheManagingService(IProductService productService, IProductVariantService productVariantService, IProductVariantGroupService productVariantGroupService, ICategoryService categoryService, 
			IOrderDiscountService orderDiscountService, IProductDiscountService productDiscountService,
			IProductRepository productRepository, ICategoryRepository categoryRepository, IProductVariantGroupRepository productVariantGroupRepository, IProductVariantRepository productVariantRepository,
			IStoreService storeService, IApplicationCacheService applicationCacheService)
		{
			_productService = productService;
			_productVariantService = productVariantService;
			_productVariantGroupService = productVariantGroupService;
			_categoryService = categoryService;
			_orderDiscountService = orderDiscountService;
			_productDiscountService = productDiscountService;
			_productRepository = productRepository;
			_categoryRepository = categoryRepository;
			_productVariantGroupRepository = productVariantGroupRepository;
			_productVariantRepository = productVariantRepository;
			_storeService = storeService;
			_applicationCacheService = applicationCacheService;

			_manageUmbracoXMLCacheWhenLoadBalanced = System.Web.Configuration.WebConfigurationManager.
				AppSettings["uWebshopLoadBalancedNoUmbraco"] != "true";
		}
        public UmbracoApplicationCacheManagingService(IProductService productService, IProductVariantService productVariantService, IProductVariantGroupService productVariantGroupService, ICategoryService categoryService,
                                                      IOrderDiscountService orderDiscountService, IProductDiscountService productDiscountService,
                                                      IProductRepository productRepository, ICategoryRepository categoryRepository, IProductVariantGroupRepository productVariantGroupRepository, IProductVariantRepository productVariantRepository,
                                                      IStoreService storeService, IApplicationCacheService applicationCacheService)
        {
            _productService                = productService;
            _productVariantService         = productVariantService;
            _productVariantGroupService    = productVariantGroupService;
            _categoryService               = categoryService;
            _orderDiscountService          = orderDiscountService;
            _productDiscountService        = productDiscountService;
            _productRepository             = productRepository;
            _categoryRepository            = categoryRepository;
            _productVariantGroupRepository = productVariantGroupRepository;
            _productVariantRepository      = productVariantRepository;
            _storeService            = storeService;
            _applicationCacheService = applicationCacheService;

            _manageUmbracoXMLCacheWhenLoadBalanced = System.Web.Configuration.WebConfigurationManager.
                                                     AppSettings["uWebshopLoadBalancedNoUmbraco"] != "true";
        }
Ejemplo n.º 3
0
 public ProductsController(
     IProductService productService,
     IFavouriteProductService favouriteService,
     IGroceryListItemService groceryListItemService,
     IGroceryListService groceryListService,
     IProductCategoryService categoryService,
     IProductDiscountService discountService,
     IProductReviewService reviewService,
     IProductSubcategoryService subcategoryService,
     ISupplierService supplierService
     )
 {
     _productService         = productService;
     _favouriteService       = favouriteService;
     _groceryListItemService = groceryListItemService;
     _groceryListService     = groceryListService;
     _categoryService        = categoryService;
     _discountService        = discountService;
     _reviewService          = reviewService;
     _subcategoryService     = subcategoryService;
     _supplierService        = supplierService;
 }
Ejemplo n.º 4
0
 public DiscountService(IOrderDiscountService orderDiscountService, IProductDiscountService productDiscountService)
 {
     _orderDiscountService   = orderDiscountService;
     _productDiscountService = productDiscountService;
 }
Ejemplo n.º 5
0
 public ProductDiscountController(IProductDiscountService productDiscountService, IOptions <AppConfig> appConfig)
 {
     _appConfig = appConfig;
     _productDiscountService = productDiscountService;
 }
 public ProductDiscountController()
 {
     var dbfactory = new DatabaseFactory();
     _ProductDiscountService = new ProductDiscountService(new ProductDiscountRepository(dbfactory), new UnitOfWork(dbfactory));
     _unitOfMeasurementService = new UnitOfMeasurementService(new UnitOfMeasurementRepository(dbfactory), new UnitOfWork(dbfactory));
 }
Ejemplo n.º 7
0
		public DiscountService(IOrderDiscountService orderDiscountService, IProductDiscountService productDiscountService)
		{
			_orderDiscountService = orderDiscountService;
			_productDiscountService = productDiscountService;
		}