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