How to pass multiple viewmodel to a single view?

Asked

Viewed 114 times

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 in it I need another viewmodel for validations.

How I pass 2 viewsmodels in a single view?

1 answer

1


One inside the other.

public class ViewModelPrincipal 
{
    public ViewModelDeValidacoes ViewModelDeValidacoes { get; set; }
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.