How to Manage Two Kind of User with seprate Table in asp.net mvc?

160 views Asked by At

I'm working on project using ASP.Net MVC 5 that have two type of user Type1 and Type2 the username of each user Type is his phone number one person should be able to sign up as both Type1 and Type2 user it mean each type should have separate register form and so it seems each type should have separate Table to store. And the problem is this how should I manage them for Authentication and Authorization system? Should I Use ASP.NET Identity? with any solution? Or Is there Any solution better than ASP.NET Identity

2

There are 2 answers

0
Ali Zeinali On BEST ANSWER

After a lot of searching i found a solution here

0
Hadee On

If you using ASP.Net MVC 5 you should diffidently go to ASP.NET Identity.Check this for more information about ASP.NET Identity. Then you should differentiate between role and claim clearly in your authentication implementation in ASP.NET Identity which suits to your project.