public virtual void UpdateOrderAttributeMapping(OrderAttributeMapping orderAttributeMapping) { if (orderAttributeMapping == null) { throw new ArgumentNullException(nameof(orderAttributeMapping)); } _orderAttributeMappingRepository.Update(orderAttributeMapping); //cache _cacheManager.RemoveByPattern(ORDERATTRIBUTES_PATTERN_KEY); _cacheManager.RemoveByPattern(ORDERATTRIBUTEMAPPINGS_PATTERN_KEY); _cacheManager.RemoveByPattern(ORDERATTRIBUTEVALUES_PATTERN_KEY); _cacheManager.RemoveByPattern(ORDERATTRIBUTECOMBINATIONS_PATTERN_KEY); //event notification _eventPublisher.EntityUpdated(orderAttributeMapping); }
public IEnumerable <ValidationResult> CanAddOrderAttributeMapping(OrderAttributeMapping orderAttributeMapping) { // yield return new ValidationResult("OrderAttributeMapping", "ErrorString"); return(null); }
public void EditOrderAttributeMapping(OrderAttributeMapping orderAttributeMappingToEdit) { orderAttributeMappingRepository.Update(orderAttributeMappingToEdit); SaveOrderAttributeMapping(); }
public void CreateOrderAttributeMapping(OrderAttributeMapping orderAttributeMapping) { orderAttributeMappingRepository.Add(orderAttributeMapping); SaveOrderAttributeMapping(); }