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