public async Task InitializeInteractiveLoop() { while (!exitFlag) { _mainMenu.PrintMenu(); var input = Console.ReadKey().Key; switch (input) { case ConsoleKey.NumPad1: await _studentController.HandleInput(); break; case ConsoleKey.NumPad2: await _lecturerController.HandleInput(); break; case ConsoleKey.NumPad3: await _lecturesController.HandleInput(); break; case ConsoleKey.NumPad4: await _groupController.HandleInput(); break; case ConsoleKey.NumPad5: await _subjectController.HandleInput(); break; case ConsoleKey.NumPad0: exitFlag = true; break; default: break; } } }