public async Task <IActionResult> Get(int id) { try { var evento = await _repositorio.GetEventoAsyncById(id, true); var result = _mapper.Map <EventoDTO>(evento); return(Ok(result)); } catch (Exception erro) { return(this.StatusCode(StatusCodes.Status500InternalServerError, $"Erro no banco de dados: {erro.Message}")); } }