示例#1
0
        public JsonResult SemesterSchedule(int controlNumber)
        {
            StudentEngine = new StudentEngine(controlNumber.ToString());
            var Schedule = StudentEngine.getSchedule();

            return(Json(Schedule));
        }
示例#2
0
        public JsonResult SemesterSchedule()
        {
            StudentEngine = new StudentEngine(Session["controlNumber"].ToString());
            var S = StudentEngine.getSchedule();

            return(Json(S));
        }
示例#3
0
 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)));
     }
 }