예제 #1
0
 /// <summary>
 /// Create Work Type
 /// </summary>
 /// <remarks>
 /// Creates a new work type for the business.
 /// </remarks>
 public Task <SgWorkTypeModel> CreateWorkTypeAsync(int businessId, SgWorkTypeModel workType, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <SgWorkTypeModel, SgWorkTypeModel>($"/business/{businessId}/worktype", workType, Method.POST, cancellationToken));
 }
예제 #2
0
 /// <summary>
 /// Update Work Type
 /// </summary>
 /// <remarks>
 /// Updates the work type with the specified ID.
 /// </remarks>
 public SgWorkTypeModel UpdateWorkType(int businessId, int id, SgWorkTypeModel workType)
 {
     return(ApiRequest <SgWorkTypeModel, SgWorkTypeModel>($"/business/{businessId}/worktype/{id}", workType, Method.PUT));
 }
예제 #3
0
 /// <summary>
 /// Create Work Type
 /// </summary>
 /// <remarks>
 /// Creates a new work type for the business.
 /// </remarks>
 public SgWorkTypeModel CreateWorkType(int businessId, SgWorkTypeModel workType)
 {
     return(ApiRequest <SgWorkTypeModel, SgWorkTypeModel>($"/business/{businessId}/worktype", workType, Method.POST));
 }