public static void PrintList(int option, List <Assignment> assignmentList, List <Student> studentList, List <Trainer> trainerList, List <Course> courseList, List <StudentsPerCourse> studentsPerCourseList, List <TrainersPerCourse> trainersPerCourseList, List <AssignmentsPerCourse> assingmnetsPerCourseList, List <Student> multipleCourseStudents, List <AssignmentsPerStudent> assignmentsPerStudentsList) { switch (option) { case 1: CourseUtils.PrintCoursesList(courseList); Console.WriteLine(); break; case 2: AssignmentsUtils.PrintAssignmentsList(assignmentList); Console.WriteLine(); break; case 3: TrainerUtils.PrintTrainersList(trainerList); Console.WriteLine(); break; case 4: StudentUtils.PrintStudentsList(studentList); Console.WriteLine(); break; case 5: StudentsPerCourseListUtils.PrintStudentPerCourse(studentsPerCourseList); Console.WriteLine(); break; case 6: TrainersPerCourseListUtils.PrintTrainerPerCourse(trainersPerCourseList); Console.WriteLine(); break; case 7: AssignmentsPerCourseListUtils.PrintAssignmentPerCourse(assingmnetsPerCourseList); Console.WriteLine(); break; case 8: StudentUtils.PrintStudentsList(multipleCourseStudents); Console.WriteLine(); break; case 9: AssignmentsPerStudentUtils.ChooseStudentToPrintAssignments(studentList, studentsPerCourseList, assingmnetsPerCourseList, assignmentsPerStudentsList); Console.WriteLine(); break; case 10: AssignmentsPerStudentUtils.PrintStudentsWithSubmissionDate(assignmentsPerStudentsList); Console.WriteLine(); break; } }
public static void TrainerEntry(int noOfEntries, List <Trainer> trainerList, List <TrainersPerCourse> trainersPerCourseList) { for (int i = 0; i < noOfEntries; i++) { Console.WriteLine($"\n---Entry no{i + 1}---\n"); Trainer temp = TrainerUtils.GetTrainerDetails(); trainerList.Add(temp); TrainersPerCourseListUtils.AddTrainerToCourse(trainersPerCourseList, temp); } }