static void PayrollProcessing() { Console.WriteLine("\n-------------------------------------------------------------------"); Console.WriteLine("PLEASE INPUT ANY OF THE FOLLOWING OPTIONS."); Console.WriteLine("\nA - Print Pay Slip"); Console.WriteLine("B - View Payroll Details"); Console.WriteLine("C - Terminate Payroll Processing"); Console.WriteLine("\n-------------------------------------------------------------------"); Console.Write("INPUT: "); CREATEPAYROLLDetails.Input = Convert.ToChar(Console.ReadLine().ToUpper()); switch (CREATEPAYROLLDetails.Input) { case 'A': Console.Clear(); var message = "A - Print Pay Slip"; USERReports.AddActionReport(message); message = "Payroll Processed"; PAYROLLHISTORY.AddPayrollProcessing(message); Console.WriteLine("\n-------------------------------------------------------------------"); Console.WriteLine(" P A Y R O L L P R O C E S S I N G C O M P L E T E D"); Console.WriteLine("-------------------------------------------------------------------"); Console.WriteLine("YOU HAVE FINISHED PROCESSING THE PAYROLL"); Console.WriteLine("SORRY, PAY SLIP PRINTING NOT YET SUPPORTED."); Console.WriteLine("\nPRESS ANY KEY TO GO BACK TO MAIN OPTIONS."); Console.ReadKey(); MainOptionsInput(); break; case 'B': Console.Clear(); message = "B - View Payroll Details"; USERReports.AddActionReport(message); Console.WriteLine("-------------------------------------------------------------------"); Console.WriteLine(" V I E W P A Y R O L L D E T A I L S"); Console.WriteLine("-------------------------------------------------------------------"); PAYROLLPROCESSINGHistory.ShowPayrollDetails(); Console.WriteLine("\n-------------------------------------------------------------------"); Console.WriteLine("PLEASE PRESS ANY KEY TO GO BACK TO PAYROLL PROCESSING OPTIONS."); Console.ReadKey(); PayrollProcessing(); break; case 'C': message = "C - Terminate Payroll Processing"; USERReports.AddActionReport(message); message = "Payroll Terminated"; PAYROLLHISTORY.AddPayrollProcessing(message); MainOptionsInput(); break; default: Console.Clear(); message = "Payroll Processing Invalid Input"; USERReports.AddResultReport(message); Console.WriteLine("-------------------------------------------------------------------"); Console.WriteLine(" E R R O R"); Console.WriteLine("-------------------------------------------------------------------"); Console.WriteLine("INVALID INPUT. PLEASE PRESS ANY KEY TO TRY AGAIN."); Console.ReadKey(); PayrollProcessing(); break; } }