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