Leslie
Leslie

Reputation: 105

WCF Restful Services

I'm developing wcf restful service using WCF 4.0. My question as below :

  1. The post method of the server side as below pic: enter image description here enter image description here

  2. The code that made the post request to server as below pic: enter image description here

  3. But when i debugged the service,i found the id property changed as below pic : enter image description here

I am confused why the value of ID property changed ?

Upvotes: 2

Views: 77

Answers (1)

Ismail Hawayel
Ismail Hawayel

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

Related Questions