/// <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); }
public virtual void DeleteHistoryCustomer(HistoryCustomer historyCustomer) { if (historyCustomer == null) { throw new ArgumentNullException("historyCustomer"); } _historyCustomerRepository.Delete(historyCustomer); //event notification _eventPublisher.EntityDeleted(historyCustomer); }