コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 /// <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));
 }