Beispiel #1
0
        private async static Task <Employee> GetEmployeeFromService(string id)
        {
            var employeeProvider = new EmployeeProvider();
            var result           = employeeProvider.GetEmployee(id);

            return(await result);
        }
Beispiel #2
0
        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);
        }
Beispiel #4
0
 public EmployeeInfo GetEmployee(EmployeeRequest request)
 {
     return(new EmployeeInfo(EmployeeProvider.GetEmployee(request.EmployeeID)));
 }
Beispiel #5
0
 public EmployeeEntity GetEmployee(int id)
 {
     return(EmployeeProvider.GetEmployee(id));
 }