M
Michael Earls
I'm creating an MVC app based on the Movie DB sample
(http://www.asp.net/learn/mvc/tutorial-21-cs.aspx). I've created my
HomeController. Now, I want to add another controller (named
ProductsController). Products controller has its own subfolder within the
Views folder withits own Index View.
What I'd like to do is provide links in my HomeController Index View to the
Products Controller Index View. I can access the Products Index using the
url http://localhost:1234/Products but I get an error when I try to iterate
through my model.
In other words, when I execute my Product Index View, it's not being
"backed" by the ProductsController. How do I "link" to my ProductsController
from my HomeController? Something tells me that this should be very simple,
but I can't find anything on the web to help out.
Any ideas?
(http://www.asp.net/learn/mvc/tutorial-21-cs.aspx). I've created my
HomeController. Now, I want to add another controller (named
ProductsController). Products controller has its own subfolder within the
Views folder withits own Index View.
What I'd like to do is provide links in my HomeController Index View to the
Products Controller Index View. I can access the Products Index using the
url http://localhost:1234/Products but I get an error when I try to iterate
through my model.
In other words, when I execute my Product Index View, it's not being
"backed" by the ProductsController. How do I "link" to my ProductsController
from my HomeController? Something tells me that this should be very simple,
but I can't find anything on the web to help out.
Any ideas?