public void Gravar(TipoEvento tipoEvento) { var tipoEventoQuery = _tipoEventoRepository.Obter(tipoEvento.Id); if (tipoEventoQuery == null) { Registrar(tipoEvento); } else { Atualizar(tipoEvento); } ValidarComando(); }