private static void ListAllMedicalCare() { Console.WriteLine("#### Listing all the medical cares ####"); List <MedicalCare> mcs = clinic.GetMedicalCares(); mcs.ForEach((MedicalCare obj) => { Console.WriteLine("Patient Name - " + obj.Patient.Name); Console.WriteLine("Procedure Name - " + obj.Procedure.Name); Console.WriteLine("Date - " + obj.Date); }); }