public ProductController() { _productService = new ProductService(new ProductRepository(new oecsEntities())); _productDetailService = new ProductDetailService(new ProductDetailRepository(new oecsEntities())); _productGalleryService = new ProductGalleryService(new ProductGalleryRepository(new oecsEntities())); _sizeService = new SizeService(new SizeRepository(new oecsEntities())); }
public EfProductService(AppDbContext context, IProductGalleryService productGalleryService, IProductTagService productTagService, IProductAttributeService productAttributeService, IAttributeGrpService attributeGrpService) : base(context) { _productGalleryService = productGalleryService; _productTagService = productTagService; _productAttributeService = productAttributeService; _attributeGrpService = attributeGrpService; }
public ProductGalleryWidgetService(IWidgetBasePartService widgetBasePartService, IApplicationContext applicationContext, CMSDbContext dbContext, IProductService productService, IProductGalleryService ProductGalleryService) : base(widgetBasePartService, applicationContext, dbContext) { _productService = productService; _productGalleryService = ProductGalleryService; }