ASP.NET MVC Default route?

前端 未结 4 2017
眼角桃花
眼角桃花 2020-12-09 16:49

I created a new ASP.NET MVC project and implemented a site authorization filter.

When I map the routes to the {controller}/{action} pair, I pass a role

4条回答
  •  隐瞒了意图╮
    2020-12-09 17:33

    When you don't provide the route name or the action is determined through a HTTP request it will look in order from the order they were added. The first time it finds one that matches, it stops. So what's probably happening is it's matching one previous to the one you've added.

提交回复
热议问题