コード例 #1
0
 /// <summary>
 /// Set Leave Allowances
 /// </summary>
 /// <remarks>
 /// Sets the leave allowances for the specified employees (dictionary keyed by employee ID).
 /// </remarks>
 public NzLeaveAllowanceModel SetLeaveAllowances(int businessId, NzLeaveAllowancesRequest request)
 {
     return(ApiRequest <NzLeaveAllowanceModel, NzLeaveAllowancesRequest>($"/business/{businessId}/leaveallowances", request, Method.PUT));
 }
コード例 #2
0
 /// <summary>
 /// Set Leave Allowances
 /// </summary>
 /// <remarks>
 /// Sets the leave allowances for the specified employees (dictionary keyed by employee ID).
 /// </remarks>
 public Task <NzLeaveAllowanceModel> SetLeaveAllowancesAsync(int businessId, NzLeaveAllowancesRequest request, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <NzLeaveAllowanceModel, NzLeaveAllowancesRequest>($"/business/{businessId}/leaveallowances", request, Method.PUT, cancellationToken));
 }