public void Handle(BookVisit message) { DomainEvents.Register <VisitBookedDomainEvent>(VisitBookedDomainEventHandler); var lead = _leadRepository.GetById(message.LeadId); Visit.Book( message.Id, message.AppointmentId, lead, message.ConsultantId); _visitRepository.Flush(); _bus.Return(ReturnCode.OK); }