Exemplo n.º 1
0
        public async System.Threading.Tasks.Task <List <Resposta> > lista_respostaAsync()
        {
            List <Resposta> respostas = new List <Resposta>();

            respostas = await RespostaDAO.Busca_Respostas();

            return(respostas);
        }
Exemplo n.º 2
0
        public async System.Threading.Tasks.Task <ActionResult> Listar_Async()
        {
            List <Resposta> respostas = await RespostaDAO.Busca_Respostas();

            return(View(respostas));
        }