If you didn’t know, ASP.NET Identity 2.0 does not work with the same code as they have done for Identity 1.0. Â This article will implement a simple role-based authorization with ASP.NET MVC 5 and Identity 2.0.
First, lets create the project.
- Go to File > New Project
- Select Web then ASP.NET Web APplication
- Name the project to: ASP.NETMVCExtendingIdentity2Roles
- Click OK, then select MVC as the template.
- Click OK.
Now that you are done with project creation, download the file available in this article. Once you have the files, if you looked at the codes, you’ll notice that there are so many files and folders. If there are build errors, you know what to do.
Read the rest of the post here:Â http://www.codeproject.com/Articles/799571/ASP-NET-MVC-Extending-ASP-NET-Identity-Roles