Ejemplo n.º 1
0
        /// <summary>
        /// Inserts a news item
        /// </summary>

        public virtual void InsertHistoryCustomer(HistoryCustomer history)
        {
            if (history == null)
            {
                throw new ArgumentNullException("history");
            }

            _historyCustomerRepository.Insert(history);

            //event notification
            _eventPublisher.EntityInserted(history);
        }
Ejemplo n.º 2
0
        public virtual void DeleteHistoryCustomer(HistoryCustomer historyCustomer)
        {
            if (historyCustomer == null)
            {
                throw new ArgumentNullException("historyCustomer");
            }

            _historyCustomerRepository.Delete(historyCustomer);

            //event notification
            _eventPublisher.EntityDeleted(historyCustomer);
        }