public async Task <IActionResult> Get(int id) { try { var evento = await _eventoService.GetAllEventosByIdAsync(id, true); if (evento == null) { return(NotFound("Evento por id não encontrado!")); } return(Ok(evento)); } catch (System.Exception ex) { return(StatusCode(500, "Erro: " + ex.Message)); } }