Exemple #1
0
        /// <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);
        }
Exemple #2
0
        /// <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);
        }