I'm still very new at MVC so bear with me here. Would the following be acceptable for validation since both Email and Created are being validated in the Model and the ModelView is creating an instance of that same User model?...
Or do you need to explicitly have the same fields called out in both the Model and ModelView?
//Model Class
public class User
{
[Required]
public string Email {get; set;}
[Required]
public DateTime Created {get; set;}
}
//ViewModel Class
public class UserViewModel
{
public User user {get; set;}
}