private async static Task <Employee> GetEmployeeFromService(string id) { var employeeProvider = new EmployeeProvider(); var result = employeeProvider.GetEmployee(id); return(await result); }
public async Task <BaseResponse> GetEmployeeAsync(string id) { EmployeeProvider e = new EmployeeProvider(); e.ClientProxyObj = new DocumentDB(); var vurn = await e.GetEmployee(id); return(vurn); }
public EmployeeEntity GetEmployee(int id) { var result = EmployeeProvider.GetEmployee(id); if (_lastSavedEmployee != null && id == _lastSavedEmployee.Id) { result.ExtensionData = _lastSavedEmployee.ExtensionData; } return(result); }
public EmployeeInfo GetEmployee(EmployeeRequest request) { return(new EmployeeInfo(EmployeeProvider.GetEmployee(request.EmployeeID))); }
public EmployeeEntity GetEmployee(int id) { return(EmployeeProvider.GetEmployee(id)); }