public ActionResult Details(int?id) { if (id == null) { return(HttpNotFound()); } Timetable timetable = manager.GetTimetableByID(id); timetable.StudentsList = populate.StudentsList(); timetable.CoursesList = populate.CoursesList(); if (timetable == null) { return(HttpNotFound()); } return(View(timetable)); }
public ActionResult Details(int?id) { if (id == null) { return(HttpNotFound()); } Homework homework = manager.GetHomeworkByID(id); homework.StudentsList = populate.StudentsList(); homework.CoursesList = populate.CoursesList(); if (homework == null) { return(HttpNotFound()); } return(View(homework)); }
public ActionResult Details(int?id) { if (id == null) { return(HttpNotFound()); } Grade grade = manager.GetGradeByID(id); grade.StudentsList = populate.StudentsList(); grade.SemestersList = populate.SemestersList(); grade.CoursesList = populate.CoursesList(); if (grade == null) { return(HttpNotFound()); } return(View(grade)); }