예제 #1
0
 /// <summary>
 /// Update Employee Expense Category
 /// </summary>
 /// <remarks>
 /// Updates the employee expense category with the specified ID.
 /// </remarks>
 public void UpdateEmployeeExpenseCategory(int businessId, int id, EmployeeExpenseCategoryModel employeeExpenseCategory)
 {
     ApiRequest($"/business/{businessId}/employeeexpensecategory/{id}", employeeExpenseCategory, Method.PUT);
 }
예제 #2
0
 /// <summary>
 /// Create Employee Expense Category
 /// </summary>
 /// <remarks>
 /// Creates an employee expense category for the business.
 /// </remarks>
 public EmployeeExpenseCategoryModel CreateEmployeeExpenseCategory(int businessId, EmployeeExpenseCategoryModel employeeExpenseCategory)
 {
     return(ApiRequest <EmployeeExpenseCategoryModel, EmployeeExpenseCategoryModel>($"/business/{businessId}/employeeexpensecategory", employeeExpenseCategory, Method.POST));
 }
예제 #3
0
 /// <summary>
 /// Create Employee Expense Category
 /// </summary>
 /// <remarks>
 /// Creates an employee expense category for the business.
 /// </remarks>
 public Task <EmployeeExpenseCategoryModel> CreateEmployeeExpenseCategoryAsync(int businessId, EmployeeExpenseCategoryModel employeeExpenseCategory, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <EmployeeExpenseCategoryModel, EmployeeExpenseCategoryModel>($"/business/{businessId}/employeeexpensecategory", employeeExpenseCategory, Method.POST, cancellationToken));
 }
예제 #4
0
 /// <summary>
 /// Update Employee Expense Category
 /// </summary>
 /// <remarks>
 /// Updates the employee expense category with the specified ID.
 /// </remarks>
 public Task UpdateEmployeeExpenseCategoryAsync(int businessId, int id, EmployeeExpenseCategoryModel employeeExpenseCategory, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync($"/business/{businessId}/employeeexpensecategory/{id}", employeeExpenseCategory, Method.PUT, cancellationToken));
 }