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