public virtual void DeleteBoatHouse(BoatHouse boatHouse) { if (boatHouse == null) { throw new ArgumentNullException(nameof(boatHouse)); } _boatHouseRepository.Delete(boatHouse); //event notification that BoatHouse Item is deleted. _eventPublisher.EntityDeleted(boatHouse); }
/// <summary> /// Updates the customer /// </summary> /// <param name="customer">Customer</param> public virtual void UpdateBoatHouse(BoatHouse boatHouse) { if (boatHouse == null) { throw new ArgumentNullException(nameof(boatHouse)); } _boatHouseRepository.Update(boatHouse); //event notification _eventPublisher.EntityUpdated(boatHouse); }