Пример #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));
 }