Asp.Net MVC4 + Web API Controller Delete request >> 404 error

后端 未结 4 1838
一向
一向 2021-01-04 02:58

I have a VS2012 MVC4 solution where I test Web API Controllers.

I successfully tested the GET, POST, PUT but the DELETE still got me an http 404 error. When I set a

4条回答
  •  借酒劲吻你
    2021-01-04 03:49

    Ran across the 404 running on Mac using Dotnet Core.

    In my case I changed the attribute annotation from HttpDelete to HttpDelete("{id}")

提交回复
热议问题