public static List<EmployeeModel> GetAllEmployees() { List<EmployeeModel> employeeModelList=new List<EmployeeModel>(); FileSystem file = new FileSystem(); List<string> empId = file.RetrieveAllIds(); for (int i = 0; i < empId.Count - 1; i++) { employeeModelList.Add(GetEmployeeById(empId[i])); } return employeeModelList; }