public void Excluir(string tipoEventoId) { var tipoEvento = _tipoEventoRepository.Obter(tipoEventoId); if (tipoEvento == null) { _bus.PublicarNotificacao(new DomainNotification("", "Tipo Evento não encontrado!")); ValidarComando(); } _tipoEventoRepository.Excluir(tipoEvento); if (Commit()) { _bus.PublicarEvento(new TipoEventoRemovidoEvent(tipoEvento.Id)); } ValidarComando(); }