Web API 2 - Method now allowed(405) for PUT
问题 I am stuck with Web API 2 controller, from which I call PUT method and it gives me an error that method isn't allowed. I added lines of code in Web.config that prevent WebDAV to block methods. I tried everything but it is not working. It is probably problem with my PUT method in a controller. Here is my controller code: public IHttpActionResult Put(int id, [FromBody]ArticleModel model) { var article = _articleService.UpdateArticle(model); return Ok<ArticleModel>(article); } This is a code