Distinguishing controller actions using authorization filters

前端 未结 2 2041
迷失自我
迷失自我 2021-01-15 06:23

I would like to have 4 actions with the same name (controller methods may have a different name, but their ActionName() attribute is the same for all 4 of them:

2条回答
  •  被撕碎了的回忆
    2021-01-15 06:51

    You have to create a route constraint for the authorized and non authorized actions. System.Web.Routing is not doing anything with the authorize attribute.

提交回复
热议问题