public void Handle(ExternalProviderScheduleCreatedEvent message) { var schedulingRequest = new SchedulingRequest(); var evt = MapUtil.Map <ExternalProviderScheduleCreatedEvent, SchedulingRequestExternalScheduleProviderCreatedEvent>(message); schedulingRequest.Apply(evt); var response = _schedulingRepository.SetScheduleExternalProviderInformation(schedulingRequest); if (response.Success) { _eventStore.Save(message); } }