Example #1
0
 /// <summary>
 /// Create Employing Entity
 /// </summary>
 /// <remarks>
 /// Creates a new employing entity for the business.
 /// </remarks>
 public Task <SgEmployingEntityModel> CreateEmployingEntityAsync(int businessId, SgEmployingEntityModel employingEntity, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <SgEmployingEntityModel, SgEmployingEntityModel>($"/business/{businessId}/employingentity", employingEntity, Method.POST, cancellationToken));
 }
Example #2
0
 /// <summary>
 /// Update Employing Entity
 /// </summary>
 /// <remarks>
 /// Updates the employing entity with the specified ID.
 /// </remarks>
 public SgEmployingEntityModel UpdateEmployingEntity(int businessId, int id, SgEmployingEntityModel employingEntity)
 {
     return(ApiRequest <SgEmployingEntityModel, SgEmployingEntityModel>($"/business/{businessId}/employingentity/{id}", employingEntity, Method.PUT));
 }
Example #3
0
 /// <summary>
 /// Create Employing Entity
 /// </summary>
 /// <remarks>
 /// Creates a new employing entity for the business.
 /// </remarks>
 public SgEmployingEntityModel CreateEmployingEntity(int businessId, SgEmployingEntityModel employingEntity)
 {
     return(ApiRequest <SgEmployingEntityModel, SgEmployingEntityModel>($"/business/{businessId}/employingentity", employingEntity, Method.POST));
 }