I am trying to test my Rest Web API through postman. I got the error
"Message": "The requested resource does not support http method 'PUT'."
[HttpPatch] [HttpPut] public HttpResponseMessage PUT(int id,Contact contact) { contact.ID = id; if(!contactRepository.Update(contact)) { throw new HttpResponseException(HttpStatusCode.NotFound); } return Request.CreateResponse(HttpStatusCode.OK); }
I have define Put method in my controller. Why am I getting this error?
"Message": "The requested resource does not support http method 'PUT'."