예제 #1
0
 /// <summary>
 /// Set Leave Allowances
 /// </summary>
 /// <remarks>
 /// Sets the leave allowances for the specified employees (dictionary keyed by employee ID).
 /// </remarks>
 public MyLeaveAllowanceModel SetLeaveAllowances(int businessId, MyLeaveAllowancesRequest request)
 {
     return(ApiRequest <MyLeaveAllowanceModel, MyLeaveAllowancesRequest>($"/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 <MyLeaveAllowanceModel> SetLeaveAllowancesAsync(int businessId, MyLeaveAllowancesRequest request, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <MyLeaveAllowanceModel, MyLeaveAllowancesRequest>($"/business/{businessId}/leaveallowances", request, Method.PUT, cancellationToken));
 }