コード例 #1
0
        public HttpResponseMessage ObterPerguntasPorUsuarioId(int id)
        {
            var perguntasUsuario = perguntasRepositorio.ObterTop5PerguntasUsuarioPorId(id);

            if (perguntasUsuario == null)
            {
                throw new ExcecaoUsuarioNaoExistente();
            }
            return(ResponderOK(perguntasUsuario));
        }