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