Reputation: 105
I'm developing wcf restful service using WCF 4.0. My question as below :
The post method of the server side as below pic:
The code that made the post request to server as below pic:
I am confused why the value of ID property changed ?
Upvotes: 2
Views: 77
Reputation: 2443
The case of the model id field is mismatching; you are passing model.ID
and you are trying to read model.Id.
Change that JObject
in the GetModel()
method to be model.Id
instead of model.ID
.
Upvotes: 2