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