예제 #1
0
 /// <summary>
 /// Update Leave Allowance Template
 /// </summary>
 /// <remarks>
 /// Updates the leave allowance template with the specified ID.
 /// </remarks>
 public void UpdateLeaveAllowanceTemplate(int businessId, int id, NzLeaveAllowanceTemplateModel leaveAllowanceTemplate)
 {
     ApiRequest($"/business/{businessId}/leaveallowancetemplate/{id}", leaveAllowanceTemplate, Method.PUT);
 }
예제 #2
0
 /// <summary>
 /// Update Leave Allowance Template
 /// </summary>
 /// <remarks>
 /// Updates the leave allowance template with the specified ID.
 /// </remarks>
 public Task UpdateLeaveAllowanceTemplateAsync(int businessId, int id, NzLeaveAllowanceTemplateModel leaveAllowanceTemplate, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync($"/business/{businessId}/leaveallowancetemplate/{id}", leaveAllowanceTemplate, Method.PUT, cancellationToken));
 }
예제 #3
0
 /// <summary>
 /// Create Leave Allowance Template
 /// </summary>
 /// <remarks>
 /// Creates a new leave allowance template for the business.
 /// </remarks>
 public void CreateLeaveAllowanceTemplate(int businessId, NzLeaveAllowanceTemplateModel leaveAllowanceTemplate)
 {
     ApiRequest($"/business/{businessId}/leaveallowancetemplate", leaveAllowanceTemplate, Method.POST);
 }