Unable to call HttpPut and HttpDelete method from POSTMan Client to ASP.NET WebAPI below is the code along with web.config entry . I am running the WEBAPI on my local IIS. The HttpPost and HttpGet methods work.
1 Answer
The way you are calling your PUT method is wrong.
Change the prototype of your method to:
[HttpPut]
[Route("update/{cKey}"]
public HttpResponseMessage Put(int cKey)
After that, your call in Postman should work.
The way you defined your route is not correct because the cKey variable never gets mapped.
Since your method accepts a not nullable integer, you must supply it in your query string. So a request to update?valQuestionPayload=123 will also work.
1 Comment
user581157
it is unchecked and does not work still unable to call the put methods




