// GET: Alunos/Create public ActionResult Create() { ViewBag.AlunoId = new SelectList(_alunoApp.GetAll(), "AlunoId", "Nome"); return(View()); }
// GET: Alunos public ActionResult Index() { var alunoViewModel = Mapper.Map <IEnumerable <Aluno>, IEnumerable <AlunoViewModel> >(_alunoApp.GetAll()); return(View(alunoViewModel)); }