ASP.Net MVC 4 Generic Principal Difficulties
I am developing an ASP.Net MVC 4 web application. Previously my MVC applications have been developed using MVC 3 and with this new MVC 4 application I have just copied/ reused my authentication and authorisation code from previous applications. When a user logs into my site I do the following Account Controller public ActionResult Login(LoginModel model, string returnUrl) { if (ModelState.IsValid) { User user = _userService.GetUser(model.Email.Trim()); //Create Pipe Delimited string to store UserID and Role(s) var userData = user.ApplicantID.ToString(); foreach (var role in user.UserRoles) {