public void Handle(ExcluirAgenciaCommand message) { if (!AgenciaExistente(message.Id, message.MessageType)) { return; } _agenciaRepository.Excluir(message.Id); if (Commit()) { _bus.RaiseEvent(new AgenciaExcluidaEvent(message.Id)); } }
public void Handle(ExcluirAgenciaCommand message) { if (!AgenciaExistente(message.Id, message.MessageType)) { return; } _agenciaRepository.Excluir(message.Id); if (Commit()) { _bus.RaiseEvent(new AgenciaExcluidaEvent(message.Id)); } }