public ActionResult DeleteCandidateFTC(int[] dsxoa) { if (!user.IsManager()) { return(View("Error")); } foreach (int id in dsxoa) { bool del = managerDal.DeleteCFTC(id); if (del) { TempData["CandidateID"] = true; TempData["statusCFTC"] = "Successfully remove the candidate from the test"; } else { TempData["CandidateID"] = false; TempData["statusCFTC"] = "Remove failed"; } } ktraDelete = 1; return(RedirectToAction("DeleteCandidateFTC")); }