Controller: public class StoreController : Controller { public IActionResult Index() { var items = new List() { new Pack(){ Name="A", Slug="S1", ImagePath="/images/Image1.png", Price=20}, new Pack(){ Name="B", Slug="S2", ImagePath="/images/Image2.png", Price=21}, new Pack(){ Name="C", Slug="S3", ImagePath="/images/image3.png", Price=22}, new Pack(){ Name="D", Slug="S4", ImagePath="/images/image4.png", Price=23}, }; return View(items); } [HttpGet] public IActionResult PackDetails(string packSlug) { return Ok("The selelcted PackSlug: " + packSlug); } } Index.cshtml @model List @if (Model.Count > 0) { foreach (var item in Model) {

@item.Name

... $@item.Price
} } @section Scripts{ }