1
Answer

How to restrict users from accessing actions in MVC

Ask a question
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)