Question: how to pass data from controller to model in mvc 4?
Answer: In the Index action of your controller create a Product object and assign it to a ViewData dictionary object as follows. Make sure you have added a using statement for your Product Model class. Change the Index View file contents as follows, build and run your application. var prod = ViewBag.