public void lookUpCustomer() { CustomerQueries search = new CustomerQueries(); Console.WriteLine("Please enter First and Last Name with space seperating them."); string input = Console.ReadLine(); string[] name = input.Split(' '); while (name.Count() < 2) { Console.WriteLine("Invalid input, please try again"); input = Console.ReadLine(); name = input.Split(' '); } var results = search.findCustomer(name[0], name[1]); if (results.Count() == 0) { Console.WriteLine("There are no customers found under that name"); } else { Console.WriteLine($"ID\tFirst Name\tLast Name\tPhoneNumber"); foreach (var c in results) { Console.WriteLine($"{c.CustomerID}\t{c.FirstName}" + $"\t\t{c.LastName}\t\t{c.PhoneNumber}"); } } Console.WriteLine("Press enter to return to the menu"); Console.ReadLine(); }