protected internal static void BookAppointment(Clinic clinic) { int doctorID; int patientID; Console.WriteLine("\n Do You Have Patient Card?" + "\t 1. Yes \t 2. No"); Console.Write(" Choice: "); int command = Convert.ToInt32(Console.ReadLine()); if (command == 1) { Console.Write(" Enter your ID: "); patientID = Convert.ToInt32(Console.ReadLine()); var CurrentPatient = clinic.FindPatient(patientID); Console.WriteLine(" Select Doctor from the List "); foreach (var doctor in clinic.doctors) { Console.WriteLine(" " + doctor.ID + ". " + doctor.Name + " " + doctor.Specialty); } Console.Write(" Number: "); doctorID = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(" Enter Appointment Date: "); Console.Write(" Year: "); int year = Convert.ToInt32(Console.ReadLine()); Console.Write(" Month (number): "); int month = Convert.ToInt32(Console.ReadLine()); Console.Write(" Day: "); int day = Convert.ToInt32(Console.ReadLine()); Console.Write(" Hour: "); int hour = Convert.ToInt32(Console.ReadLine()); clinic.BookAppointment(patientID, doctorID, new DateTime(year, month, day, hour, 0, 0)); } if (command == 2) { CreateAccount(clinic); } return; }