I have two Controllers in my MVC4 application that I want to require users to be logged into to access; an 'admin' area of sorts.
I have a database linked class that handles authentication for me in C#, meaning I can do something like this:
LoginUtility lu = new LoginUtility();
if(lu.Login("username", "password") == true){
// User is genuine
} else {
// Login failed
}
I want to hook this up to MVC4 so I can apply the [Authorize] attribute to those two Controllers.