private static void ListAllPatients() { Console.WriteLine("#### Listing all the patients ####"); List <Patient> patients = clinic.GetPatients(); int index = 1; patients.ForEach((Patient obj) => { Console.WriteLine(index + " - " + obj.Name); index++; }); }