I have a model like this:
public Products()
{
string name {get; set;}
string category { get; set;}
}
I was trying to create an object within an action method or to pass as a parameter to that method & use that object to create the view by passing that object to view method. I was expecting the framework to create an appropriate view to show the products. Is it the right way to do this? I have a feeling I'm missing something in between heavily, but can't figure it out. Thnaks.