Custom authentication and authorization in mvc 5 applicationHi,
I have 2 tables in my database. 1)EMP(Id,Name,Password,RoleID)
2)Roles(Id,Description). I have 3 records in my emp tables who is having the roles ADMIN,SemiAdmin,User.
I have 3 links like page1,page2, page3 in home page. I want to show 3 links( page1,page2, page3) for Admin,2 links(page2, page3) for SemiAdmin and 1 link(page3) for user.
Any one suggest me how to implement authentication and authorization in mvc 5 application.