Ejemplo n.º 1
0
        public ActionResult ProblemsChecking(bool[] SelectedProblems)
        {
            CheckProblemsModel cpm = new CheckProblemsModel();

            cpm.RealProblems(SelectedProblems);
            return(RedirectToAction("LoggedInIndex"));
        }
Ejemplo n.º 2
0
 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"));
     }
 }