I am developing management software for my fitness club.
I have students, teachers and system users.
I installed identity.
I created a model named Aluno
that inherits from IdentityUser
public class Aluno : IdentityUser
{
public int AlunoId { get; set; }
public string Nome { get; set; }
//etc
}
Now I would create the teachers, so I thought
Professor: IdentityUser
But would not it be better to use the table itself created by identity AspNetUsers
?
I'm a bit confused, because then I'll put some "student", "teacher", "admin", "operator", etc. roles that will be the access level in the system administrative panel. >
How I would then to add Students. But it made a mistake. Object reference not set to an instance of object.