/// <summary> /// Create Leave Category /// </summary> /// <remarks> /// Creates a new leave category for the business. /// </remarks> public Task <MyLeaveCategoryModel> CreateLeaveCategoryAsync(int businessId, MyLeaveCategoryModel leaveCategory, CancellationToken cancellationToken = default) { return(ApiRequestAsync <MyLeaveCategoryModel, MyLeaveCategoryModel>($"/business/{businessId}/leavecategory", leaveCategory, Method.POST, cancellationToken)); }
/// <summary> /// Update Leave Category /// </summary> /// <remarks> /// Updates the leave category with the specified ID. /// </remarks> public MyLeaveCategoryModel UpdateLeaveCategory(int businessId, int id, MyLeaveCategoryModel leaveCategory) { return(ApiRequest <MyLeaveCategoryModel, MyLeaveCategoryModel>($"/business/{businessId}/leavecategory/{id}", leaveCategory, Method.PUT)); }
/// <summary> /// Create Leave Category /// </summary> /// <remarks> /// Creates a new leave category for the business. /// </remarks> public MyLeaveCategoryModel CreateLeaveCategory(int businessId, MyLeaveCategoryModel leaveCategory) { return(ApiRequest <MyLeaveCategoryModel, MyLeaveCategoryModel>($"/business/{businessId}/leavecategory", leaveCategory, Method.POST)); }