Exemple #1
0
        public static void DisplayEmployeeByName(string nameOfEmployee)
        {
            var    employeesFromLocation = myPhoneBook.GetEmployeeByName(nameOfEmployee);
            string result = string.Empty;

            employeesFromLocation.ForEach(e => result += $"{ e.PrintFullInfo()}\n");
            Console.WriteLine(result);
        }