Ejemplo n.º 1
0
 /// <summary>
 /// Update Employee Additional Earning
 /// </summary>
 /// <remarks>
 /// Updates the employee's additional earning with the specified ID.
 /// </remarks>
 public AdditionalEarningsModel UpdateEmployeeAdditionalEarning(int businessId, int employeeId, int id, AdditionalEarningsInputModel model)
 {
     return(ApiRequest <AdditionalEarningsModel, AdditionalEarningsInputModel>($"/business/{businessId}/employee/{employeeId}/additional-earnings/{id}", model, Method.PUT));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create Employee Additional Earning
 /// </summary>
 /// <remarks>
 /// Creates a new additional earning for the employee.
 /// </remarks>
 public Task <AdditionalEarningsModel> CreateEmployeeAdditionalEarningAsync(int businessId, int employeeId, AdditionalEarningsInputModel model, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <AdditionalEarningsModel, AdditionalEarningsInputModel>($"/business/{businessId}/employee/{employeeId}/additional-earnings", model, Method.POST, cancellationToken));
 }