public static EmployeeCollection FetchEmployeeListFromApi(string filterString) { ApiAdapter apiAdapter = new ApiAdapter(); EmployeeCollection employeeCollection = apiAdapter.FetchEmployees(filterString); return(employeeCollection); }
/* * Fetch employee list from the api */ public static EmployeeCollection FetchEmployeeListFromApi() { ApiAdapter apiAdapter = new ApiAdapter(); EmployeeCollection employeeCollection = apiAdapter.FetchEmployees(null); return(employeeCollection); }