public ActionResult DeleteCandidateFTC(int id) { if (!user.IsManager()) { return(View("Error")); } if (managerDal.GetCandidateToDelete(id).Count() == 0 && ktraDelete == 0) { TempData["CandidateID"] = true; TempData["statusCFTC"] = "There are no candidates to delete!!!!!!"; } ktraDelete = 0; return(View(managerDal.GetCandidateToDelete(id))); }