public ActionResult ViewTimetable() { Student student = (Student)Session["student"]; TermOption term = dao.GetCurrentTermOption(); List <TimetableEntry> model = dao.GetTimetable(student.StudentId, term.TermId); return(View(model)); }