I have a main layout page that has a basic table setup. I have a Main Content cell that I use to put RenderBody() in. I have product listings that use a Products database and I have a menu on the right side that needs to access the User database. How can I list my products using the products model in the Main Content cell and use the users model to list info in my Menu cell?
Share
The only method I have used (however I’m not entirely confident on it’s best practice status) is to create a model for the page that includes both (in your case) the
productmodel and theusermodel. Populate these models in the controller, then access the inner models as you normally would in the view.