/// <summary> /// Updates the product attribute mapping /// </summary> /// <param name="productAttributeMapping">The product attribute mapping</param> public virtual void UpdateProductAttributeMapping(ProductAttributeMapping productAttributeMapping) { if (productAttributeMapping == null) { throw new ArgumentNullException("productAttributeMapping"); } _productAttributeMappingRepository.Update(productAttributeMapping); //cache _cacheManager.GetCache(CACHE_NAME_PRODUCTATTRIBUTES).Clear(); _cacheManager.GetCache(CACHE_NAME_PRODUCTATTRIBUTEMAPPINGS).Clear(); _cacheManager.GetCache(CACHE_NAME_PRODUCTATTRIBUTEVALUES).Clear(); _cacheManager.GetCache(CACHE_NAME_PRODUCTATTRIBUTECOMBINATIONS).Clear(); //event notification //_eventPublisher.EntityUpdated(productAttributeMapping); }
public void EditProductAttributeMapping(ProductAttributeMapping productAttributeMappingToEdit) { productAttributeMappingRepository.Update(productAttributeMappingToEdit); SaveProductAttributeMapping(); }