// GET: Home public ActionResult Index() { var alunos = _alunoAppService.Get().OrderBy(x => x.Id).ToList(); var alunosViewModel = Mapper.Map <List <AlunoViewModel> >(alunos); return(View(alunosViewModel)); }
// GET: Home public ActionResult Index() { var alunos = _alunoAppService.Get().OrderBy(x => x.Id).ToList(); var alunosViewModel = Mapper.Map <List <AlunoViewModel> >(alunos); return(View(alunosViewModel)); }