示例#1
0
 public ActionResult AddCandidateForTest(int[] dsADD)
 {
     if (!user.IsManager())
     {
         return(View("Error"));
     }
     foreach (int id in dsADD)
     {
         bool del = managerDal.addForTest(id_testcode, id);
         if (del)
         {
             TempData["CandidateID"] = true;
             TempData["statusACTC"]  = "Add candidate successfull";
         }
         else
         {
             TempData["CandidateID"] = false;
             TempData["statusACTC"]  = "Add candidate failed!!";
         }
     }
     ktraAdd = 1;
     return(RedirectToAction("AddCandidateForTest"));
 }