Exemplo n.º 1
0
        // GET: Aluno/Create
        public IActionResult Create()
        {
            var Projetos = projetoDAL.ObterProjetosClassificadosPorNome().ToList();

            Projetos.Insert(0, new Projeto()
            {
                ProjetoID = 0, ProjetoNome = "Selecione o projeto"
            });
            ViewBag.Projetos = Projetos;

            ValidaStatus();
            return(View());
        }
Exemplo n.º 2
0
 // GET: Projeto
 public async Task <IActionResult> Index()
 {
     return(View(await projetoDAL.ObterProjetosClassificadosPorNome().ToListAsync()));
 }