Exemplo n.º 1
0
 public ActionResult ListStudent(long idclass)
 {
     var studentDao = new StudentDao();
     var classDao = new ClassDao();
     var ClassDetails = classDao.GetClassById(idclass);
     ViewBag.ClassDetails = ClassDetails;
     var ListStudentOfClass = studentDao.GetListStudentByClassId(idclass);
     ViewBag.ListStudent = ListStudentOfClass;
     return View();
 }