public ApiResult <List <RelcodeDto> > GetRelcodeView() { _logger.Info("開始呼叫EmployeeInfoService.GetRelcodeView"); ApiResult <List <RelcodeDto> > apiResult = new ApiResult <List <RelcodeDto> >(); apiResult.State = false; try { apiResult.Result = _employeeService.GetRelcodeView(); apiResult.State = true; } catch (Exception ex) { apiResult.Message = ex.ToString(); } return(apiResult); }