0
I have a Teacher class that has a User, and I want to register the User fields in the Teacher View.
How can I be doing this
public  class Usuario 
{ 
    public int Id { get; set; }
    public int Matricula { get; set; }
    public string Nome { get; set; }
    public string Email { get; set; }
    public DateTime DataCadastro { get; set; }
    public bool Ativo { get; set; }
}
public class Professor 
{
    public int Id { get; set; }
    public Usuario Usuario { get; set; }
}
There are several ways to solve this, but a tip is to watch the lesson of the link below. https://mva.microsoft.com/pt-br/training-courses/aspnet-mvc-intermedirio-12103?l=jZUi7sRIB_8004984382
– Ronivaldo Roner