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