|
@ -63,6 +63,14 @@ public class Main { |
|
|
break; |
|
|
break; |
|
|
case 7: |
|
|
case 7: |
|
|
// Delete Course |
|
|
// Delete Course |
|
|
|
|
|
System.out.println("Enter the Course ID of the course you wish to delete:"); |
|
|
|
|
|
String courseIDToDelete = scanner.next(); |
|
|
|
|
|
boolean isDeleted = administration.deleteCourse(courseIDToDelete); |
|
|
|
|
|
if (isDeleted) { |
|
|
|
|
|
System.out.println("Course with ID " + courseIDToDelete + " has been successfully deleted."); |
|
|
|
|
|
} else { |
|
|
|
|
|
System.out.println("Course with ID " + courseIDToDelete + " not found."); |
|
|
|
|
|
} |
|
|
break; |
|
|
break; |
|
|
case 8: |
|
|
case 8: |
|
|
// View Courses |
|
|
// View Courses |
|
|