3
I am developing management software for my gym.
I have Students, Teachers and system users.
I installed the Identity.
I created a model calling for Aluno
who inherits from the IdentityUser
public class Aluno : IdentityUser
{
public int AlunoId { get; set; }
public string Nome { get; set; }
//etc
}
Now I was going to create the teachers, so I thought
Professor: IdentityUser
But it would not be better to use the table already created by Identity AspNetUsers
?
I am a little confused, because then I will put some roles like "students", "teachers", "admin", "operator", etc., which will be the level of access in the administrative panel of the system.
How would you then add Students. But it was a mistake. Object Reference not set to an instance of Object.
How to control the pages through Identity? Role X can access page Y Role Z can access page J
– Marcos Rebitte