コード例 #1
0
 public ActionResult CheckedStudent(string id)
 {
     if (id != null)
     {
         var repo = new RegistrationRepository();
         var model = repo.GetPendingStudent("1");
         var students = model.Where(it => it.id == id).ToList();
         repo.verify(students);
     }
     return RedirectToAction("Index");
 }
コード例 #2
0
 public ActionResult CheckedStudents(string[] selectedStudent)
 {
     if (selectedStudent != null)
     {
         var repo = new RegistrationRepository();
         var model = repo.GetPendingStudent("1");
         var students = model.Where(it => selectedStudent.Any(item => item == it.id)).ToList();
         repo.verify(students);
     }
     return RedirectToAction("Index");
 }