/// <summary> /// Update an order item /// </summary> /// <param name="orderItem">The order item</param> public void UpdateOrderItem(CurrentOrderItem orderItem) { if (orderItem == null) { throw new ArgumentNullException(nameof(orderItem)); } _currentOrderItemRepository.Update(orderItem); //event notification _eventPublisher.EntityUpdated(orderItem); }
/// <summary> /// Inserts an order item /// </summary> /// <param name="item">OrderItem</param> public virtual void InsertOrderItem(CurrentOrderItem item) { if (item == null) { throw new ArgumentNullException(nameof(item)); } _currentOrderItemRepository.Insert(item); //event notification _eventPublisher.EntityInserted(item); }