public ProductCommentsPlugin(ProductCommentsObjectContext objectContext, ILocalizationService localizationService, ISettingService settingService, WidgetSettings widgetSettings) { this._objectContext = objectContext; this._localizationService = localizationService; this._settingService = settingService; this._widgetSettings = widgetSettings; }
/// <summary> /// Ctor /// </summary> /// <param name="productCommentRepository">Product comment repository</param> /// <param name="localizedPropertyRepository">Localized property repository</param> /// <param name="productRepository">Product repository</param> /// <param name="workContext">Work context</param> public ProductCommentService(IRepository <ProductComment> productCommentRepository, IRepository <LocalizedProperty> localizedPropertyRepository, IRepository <Product> productRepository, IWorkContext workContext, ProductCommentsObjectContext productCommentsObjectContext) { this._productCommentRepository = productCommentRepository; this._localizedPropertyRepository = localizedPropertyRepository; this._productRepository = productRepository; this._workContext = workContext; this._productCommentsObjectContext = productCommentsObjectContext; }