public ActionResult ProblemsChecking(bool[] SelectedProblems) { CheckProblemsModel cpm = new CheckProblemsModel(); cpm.RealProblems(SelectedProblems); return(RedirectToAction("LoggedInIndex")); }
public ActionResult ProblemsChecking() { if (isloggedinadmin == true) { CheckProblemsModel cpm = new CheckProblemsModel(); String[] problems = cpm.Problems(); for (int i = 0; i < problems.Length; i++) { cpm.SelectedProblems.Add(false); } ViewData["Problems"] = problems; return(View(cpm)); } else { return(RedirectToAction("LoggedInIndex")); } }