예제 #1
0
        private void DisplayDepartmentRoster(string result)
        {
            var department = RosterReport.GetDepartmentRoster(result);

            DisplayReportTitle("DEPARTMENT ROSTER");
            Console.WriteLine();
            DisplayRosterList(department.First());
        }
예제 #2
0
        private void ProcessRosterPrintingQueryResponse(string response)
        {
            switch (response.ToUpper())
            {
            case "A":
                Console.Clear();
                var departments = RosterReport.GetAllDepartmentRosters();
                DisplayAllDepartmentRosters(departments);
                break;

            case "S":
                Console.Clear();
                DisplayDepartmentRoster(QueryUserForDepartmentName());
                break;

            default:
                Console.WriteLine("That's not even an option. Try again.");
                QueryUserDepartmentRoster();
                break;
            }
        }