public void ProcessInitializeSessionResponse(string response) { switch (response.ToUpper()) { case "R": Console.Clear(); var rosterReportingSession = new RosterReportDisplay(); rosterReportingSession.QueryUserDepartmentRoster(); break; case "P": Console.Clear(); var payrollStatisticsReportingSession = new PayrollStatisticsReportDisplay(); payrollStatisticsReportingSession.QueryUserPayrollStatistics(); break; case "E": Console.WriteLine("You've chosen employee reporting but it doesn't exist yet. Try again."); QueryUserInitializeSession(); break; default: Console.WriteLine("That's not even an option. Try again."); QueryUserInitializeSession(); break; } }
private static void ContinueSession(string session) { switch (session) { case "department roster": var rosterReport = new RosterReportDisplay(); rosterReport.QueryUserDepartmentRoster(); break; case "payroll statistics": var payrollStatisticsReport = new PayrollStatisticsReportDisplay(); payrollStatisticsReport.QueryUserPayrollStatistics(); break; case "default": Console.WriteLine("That's not even an option. Try again."); break; } }