ASP MVC Routes without actions

后端 未结 3 1258
梦毁少年i
梦毁少年i 2020-12-09 06:53

I would like to leave out the action in url as I do not consider that to be a restful approach. Default routes should be:

\"{controller}/{id}\"
3条回答
  •  时光说笑
    2020-12-09 07:40

    Consider using the AttributeRouting nuget package. It has support for restful conventions.

提交回复
热议问题