1
Answer

How to restrict access particular Action in mvc

Shibly  Sadik

Shibly Sadik

9y
928
1
I have several Action method inside my controller. I want to restrict access one or more action method by all the registered users in my database model and allow access by only one user. How to do that??
Answers (1)
0
Afzaal Ahmad Zeeshan

Afzaal Ahmad Zeeshan

30 39.2k 5.9m 9y
You can show the users a friendly error message saying they are not authorized. :)
Next Recommended Forum