public JsonResult SemesterSchedule(int controlNumber) { StudentEngine = new StudentEngine(controlNumber.ToString()); var Schedule = StudentEngine.getSchedule(); return(Json(Schedule)); }
public JsonResult SemesterSchedule() { StudentEngine = new StudentEngine(Session["controlNumber"].ToString()); var S = StudentEngine.getSchedule(); return(Json(S)); }
public ActionResult Index() { if (Session["level"].ToString() == "1") { return(RedirectToAction("Index", "Admin")); } else { StudentEngine = new StudentEngine(Session["controlNumber"].ToString()); var Data = StudentEngine.UserData(); var Schedule = StudentEngine.getSchedule(); return(View(Tuple.Create(Schedule, Data))); } }