How to pass multiple viewmodel to a single view?

1

I have my view, it depends on a viewmodel.

But in this same view, I add items referring to the main one with a bootstrap modal, and I need another viewmodel for the validations.

How do I pass 2 viewsmodels into a single view?

    
asked by anonymous 30.09.2014 / 15:35

1 answer

1

One inside the other.

public class ViewModelPrincipal 
{
    public ViewModelDeValidacoes ViewModelDeValidacoes { get; set; }
}
    
30.09.2014 / 19:17