ASP.net web api 2 Route-Attribute not working

前端 未结 7 1877
野性不改
野性不改 2021-01-19 17:52

I\'ve the following problem, my route attribute is not working.

I have the following action:

[HttpGet]
[Route(\"~api/admin/template/{fileName}\")]
pu         


        
相关标签:
7条回答
  • 2021-01-19 18:52

    Verify that you are using System.Web.Http.RouteAttribute and not System.Web.Mvc.RouteAttribute

    0 讨论(0)
提交回复
热议问题