public static void PrintCompleteRecord() { Console.WriteLine("Loading..."); foreach (Person item in DatabaseAction.GetPeople()) { Console.WriteLine("--------------------------------------------------------------"); Console.WriteLine($"ID: {item.Pid} Name: {item.firstName} {item.lastName}"); PrintAddress(item); PrintPhone(item); Console.WriteLine("--------------------------------------------------------------"); } }
public static void PrintPeople() { if (DatabaseAction.GetPeople() != null) { foreach (Person item in DatabaseAction.GetPeople()) { Console.WriteLine("------------"); Console.WriteLine($"ID: {item.Pid} Name: {item.firstName} {item.lastName}"); Console.WriteLine("------------"); } } else { Console.WriteLine("No Records Found!"); } }