at the screen displaying the items list in you have to add @model IEnumerable<t> where T is the type to which you want bind your view.
You can eliminate the IEnumerable in your ProductDetails class
Simplest way to do this is
Add a property to binding Model Class like List<productdetails> ProductList
Declare the model in view @model <namespace>.yourModel
Fill the ProductList and load it using controller like this
Public ActionResult ControllerAction()
{
MyModel = new MyModel(){
ProductList = GetProductslistFromDB();
};
return View("YouViewwName",MyModel );
}
At the View Use this code
<%foreach (var item in Model.ProductList)
{
<%item.Name%/> etc etc
} %>
Sorry I could not complete the code in HTML as I know razor better.