private static void TryShowWantedData(string input, string[] data) { if (data.Length == 2) { var courseName = data[1]; StudentsRepository.GetAllStudentsFromCourse(courseName); } else if (data.Length == 3) { var courseName = data[1]; var userName = data[2]; StudentsRepository.GetStudentsScoresFromCourse(courseName, userName); } else { DisplayInvalidCommandMessage(input); } }