the receiving method in the backend Controller is as follows:
[HttpPost]
public HttpResponseMessage BatchDoDistribute([FromBody]List<DistributeMaterial> list){
}
after passing the postman test, it is found that list can receive two objects, but neither of the specific property values of the object. As shown below:
use postman to test the post interface. The data format is as follows: application/json, test data
[{
"StageName": "1",
"ContainerID": "999",
"ContainerTypeCode": "999",
"ProduceOrderNO": "WH18060041",
"OriginMaterialCode": "120400000009",
"LastModifyPerson": "",
"Location": "Cell-2-05-02",
"MaterialInventoryCode": "120400000009",
"IsSubstitutie": 0,
"TotalNeedDistribute": 66.0,
"ContainerCapacity": 20.0,
"Quantity": 66.0,
"ID": 0,
"IsDispatch": 0,
"ProduceLineStationID": 0,
"ProduceLineID": 0,
"WorkstageID": 24
},{
"StageName": "2",
"ContainerID": "999",
"ContainerTypeCode": "999",
"ProduceOrderNO": "WH18060041",
"OriginMaterialCode": "120400000009",
"LastModifyPerson": "",
"Location": "Cell-2-05-02",
"MaterialInventoryCode": "120400000009",
"IsSubstitutie": 0,
"TotalNeedDistribute": 66.0,
"ContainerCapacity": 20.0,
"Quantity": 66.0,
"ID": 0,
"IsDispatch": 0,
"ProduceLineStationID": 0,
"ProduceLineID": 0,
"WorkstageID": 24
}]