Exemplo n.º 1
0
        public IList <Employee> Employees()
        {
            PrepareContactsObject();

            Console.WriteLine("Fetching list of employees...");

            return(_contacts.Employees());
        }
Exemplo n.º 2
0
 public IList <Employee> Employees()
 {
     Console.WriteLine("Creating contact list and fetching list of employees...");
     if (_contacts == null)
     {
         _contacts     = new ContactsImpl();
         _employeeList = _contacts.Employees();
     }
     return(_employeeList);
 }