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