public async Task <ActionResult> Details(int id) { _logger.LogInformation("Loading Employee Details to View"); var employee = await _employeeService.GetEmployeeById(id); EmployeeViewModel employeeViewModel = _objectMapper.EmployeeToEmployeeViewModel(employee); return(View(employeeViewModel)); }