Example #1
0
        public async Task <SingleEmpViewModel> GetEmpByID(Guid empID)
        {
            var employee = await _employeeOrchestrator.GetEmpByID(empID);

            if (employee == null)
            {
                throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.NotFound));
            }

            return(employee);
        }