Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Answer by Andy Rose for MVC controller and repository model

You are returning the repository in the View not the Product. Change it to this:

var product = repo.GetProductID(id);return View(product );

Viewing latest article 1
Browse Latest Browse All 3

Trending Articles