/// <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); }
/// <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)); }
/// <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); }