Exemple #1
0
        public IActionResult VerAlumnos(int clave)
        {
            IndexViewModel    vm = new IndexViewModel();
            AlumnoRepository  AlumnoRepository  = new AlumnoRepository(context);
            MaestroRepository maestroRepository = new MaestroRepository(context);

            vm.Maestro      = maestroRepository.GetMaestroByClave(clave);
            vm.ListaAlumnos = AlumnoRepository.GetAllByClaveMaestro(clave);

            return(View(vm));
        }