7.5.1.3 Adding the View Model Data; Listing 7-22 Updating the List.cshtml File
parent
a5e527e9b8
commit
237a9f0aa8
|
@ -1,11 +1,11 @@
|
||||||
@using SportsStore.Domain.Entities
|
|
||||||
@model IEnumerable<Product>
|
@model SportsStore.WebUI.Models.ProductsListViewModel
|
||||||
|
|
||||||
@{
|
@{
|
||||||
ViewBag.Title = "Products";
|
ViewBag.Title = "Products";
|
||||||
}
|
}
|
||||||
|
|
||||||
@foreach (var p in Model)
|
@foreach (var p in Model.Products)
|
||||||
{
|
{
|
||||||
<div>
|
<div>
|
||||||
<h3>@p.Name</h3>
|
<h3>@p.Name</h3>
|
||||||
|
|
Loading…
Reference in New Issue