Beispiel #1
0
        /// <summary>
        /// Inserts a product attribute
        /// </summary>
        /// <param name="productAttribute">Product attribute</param>
        public virtual void InsertProductAttribute(ProductAttribute productAttribute)
        {
            if (productAttribute == null)
            {
                throw new ArgumentNullException("productAttribute");
            }

            _productAttributeRepository.Insert(productAttribute);

            //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.EntityInserted(productAttribute);
        }