public ActionResult AddTestException(ExceptionVM EVM) { if (!CheckCookie()) return RedirectToAction("Index"); return View(); }
public ActionResult ExceptionNID(ExceptionVM EVM) { if (!CheckCookie()) return RedirectToAction("Index"); EVM.Prof = Session["User"].ToString(); //Verify NID exists and is related to logged in professor by a class somehow. if (!EVM.VerifyNID()) { ModelState.Clear(); ModelState.AddModelError(String.Empty, "Problem processing NID. Verify that the entered NID is a student currently enrolled in one of your courses."); return View("AddTestException"); } EVM.GetBlackedOutDates(); return View("ExceptionInfo", EVM); }
public ActionResult ExceptionInfo(ExceptionVM EVM) { if (!CheckCookie()) return RedirectToAction("Index"); EVM.Insert(Session["User"].ToString()); return RedirectToAction("ExceptionConfirmation"); }