I have this structure and I am working with ASP MVC. I want to make a user registration and what I want to do is that when the user registers, add a role automatically.
As you can see, there are different users so I just want to make a single form that works for all users and, depending on the type of user, that chooses to assign a role specifically when the record is saved.
What I want to do is, when saving the user's record, insert the value of the id
of the role that is in the table rol
automatically in the table Usuario
, which is the one that is related .