I have an ASP.NET MVC application which has two controllers - one will be used for all registered users (thus only users held within the User table in the database can access this controller) and another for admins (an admin is determined by a True value in the Admin attribute within the User table).
Just to clarify, the User table has four attributes:
ID (int) - this is the same ID as the user's Windows ID
Forename (nvarchar)
Surname (nvarchar)
Admin (bit)
I've did a bit of research around this although have failed to understand which route I should take. Within ASP.NET MVC4 what would be the best approach to restricting access based on if a user is an Admin or not? And also to restrict access to the general controller to users which have their ID stored within the database?
Any help would be greatly appreciated. Thanks.