✅ Passing data from controller to view
Hi guys hoping for some help here.
I have an eCommerce wep app using ASP.NET MVC (7.0) and I want to pass data from a controller to a view. Now I understand I can do this with the
I have a
Any help is greatly appreciated, thank you.
I have an eCommerce wep app using ASP.NET MVC (7.0) and I want to pass data from a controller to a view. Now I understand I can do this with the
ViewBag dynamic property or strongly typed view models. The data I want pass belongs to another model entirely and not the model for which the View is for.I have a
Game model which has 2 FK's Developer and Publisher - within my
create()View for theGameModel I wish to have a drop down list ofDevelopersin the database to select from. How do I achieve this? Been stuck on this step for a while now and I'm still very new to .NET.
Any help is greatly appreciated, thank you.