Exemplo n.º 1
0
        public IActionResult ListagemProjetos()
        {
            //string url = "http://localhost:64154/api/Projeto/ListarTodos";
            //WebClient client = new WebClient();

            //byte[] dataApiByte = client.DownloadData(url);

            //ViewBag.Projeto = Enc
            ViewBag.Projeto = _projetoDAO.ListarTodos();
            return(View());
        }
Exemplo n.º 2
0
 public IActionResult Cadastrar()
 {
     ViewBag.Projetos = new SelectList
                            (_projetoDAO.ListarTodos(), "ProjetoId",
                            "Nome");
     ViewBag.Requisitante = new SelectList
                                (_funcionarioDAO.ListarTodos(), "PessoaId",
                                "Nome");
     ViewBag.Assinatura = new SelectList
                              (_funcionarioDAO.ListarTodos(), "PessoaId",
                              "Nome");
     return(View());
 }
Exemplo n.º 3
0
 public IActionResult ListarTodos()
 {
     return(Ok(_projetoDAO.ListarTodos()));
 }