Shibly  Sadik

Shibly Sadik

  • 1.5k
  • 167
  • 134.6k

How to restrict users from accessing actions in MVC

Jun 6 2015 8:13 AM
Suppose,i have a property named "UserId" in my model named "User".How can i set the "UserId" property as admin role and to allow access a controller or action only by the user who's "UserId" is like 1001??
Please help me explaining detail...

Answers (1)