I am new in learning asp.net MVC and am trying to access some data from the controller in my view. This is my code:
public ActionResult Index(string subcategory)
{
List<Object> products = db.ListOfProducts(subcategory);
return View(products);
}
I know that after passing the LIST into the VIEW there should be some way to acces the data in the VIEW but I can't seem to figure out how. Normally when I create a view based on a model I know that by using the model object I can acces the data I need, but usually theres a definiton on the top regarding the model and in my caase there is none.
So how can I acces the LISTS data in my view?