2

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 ?

Leslie
  • 105
  • 1
  • 2
  • 4

1 Answers1

2

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.

Faizan Mubasher
  • 4,427
  • 11
  • 45
  • 81
Ismail Hawayel
  • 2,167
  • 18
  • 16