public async Task <IActionResult> ObterPorId(int PerguntaId) { try{ var results = await _perguntaRepositorio.ObterPorPerguntaId(PerguntaId); var resultsPergunta = _mapper.Map <PerguntaDto[]>(results); return(Ok(results)); } catch (System.Exception) { return(this.StatusCode(StatusCodes.Status500InternalServerError, "Banco de Dados Falou")); } }