How to restrict users from accessing actions in MVC
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...