Example #1
0
        public ActionResult ProblemsFixing(bool[] SelectedProblems)
        {
            FixProblemsModel fpm = new FixProblemsModel();

            fpm.RemainingProblems(SelectedProblems);
            return(RedirectToAction("LoggedInIndex"));
        }
Example #2
0
 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"));
     }
 }