// 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()); }
// GET: Projeto public async Task <IActionResult> Index() { return(View(await projetoDAL.ObterProjetosClassificadosPorNome().ToListAsync())); }