public async Task <ActionResult> GetEventoById(int id) { try { var evento = await _eventoRepository.GetEventoAsyncById(id, true); var results = _mapper.Map <EventoDTO>(evento); return(Ok(results)); } catch (System.Exception) { return(this.StatusCode(500, "Deu ruim!")); } }