// // EmployeeService.swift // EmployeeDirectory // // Created by Matt Bruce on 1/20/25. // import Foundation /// Service Layer for Employees public class EmployeeService: EmployeeServiceProtocol { /// Service to get Employees /// - Returns: Array of Employee Structs public func getEmployees() async throws -> [Employee] { let employees: Employees = try await NetworkService.shared.fetchData(from: "https://jsonplaceholder.typicode.com/users", as: Employees.self) return employees.employees } }