public void Search() { Console.WriteLine("Select search option: firstname | lastname | phone | egn "); SearchOption searchOption = EnumMapper.ReadSearchOption(Console.ReadLine().ToLower().Trim()); PrintContacts(GetSearchResult(searchOption)); }
public void Search() { Console.WriteLine("Select search option: firstname | lastname | phone | egn "); SearchOption searchOption = EnumMapper.ReadSearchOption(Console.ReadLine().ToLower().Trim()); PrintContacts(GetSearchResult(searchOption)); }