private static void SearchByName() { ClearHelper.Clear(); Console.WriteLine("Addresses Search\n"); Console.WriteLine("Search by Name:"); string name = Console.ReadLine(); Console.WriteLine("\nFetching Data, please wait..."); List <AddressesDataAcess> Addresses = controller.FindByName(name); Console.WriteLine(); if (Addresses.Count == 0) { Console.WriteLine($"There is no Address with this Street"); } else { foreach (AddressesDataAcess Address in Addresses) { Console.WriteLine(Address.ToString()); } } Console.ReadKey(); ClearHelper.Clear(); }