How to Extend/Architect the ASP.NET MVC 3 Authorize Attribute to Handle This Scenario

后端 未结 2 2004
轻奢々
轻奢々 2021-02-14 15:36

I\'ve been trying to think this answer through and can\'t find a good solution on how to properly do this.

I\'ve read over these articles:
h

2条回答
  •  無奈伤痛
    2021-02-14 16:00

    I had somewhat similar problem and I did not use Authorize attribute.

    Instead I decided to to take the different -2 Layout for the Different user .

    if the User is Admin then he will go to the different view and if the user is guest he will go to the different view through different layout.

提交回复
热议问题