7.5.1.3 Adding the View Model Data; e.g. 7.19 The ProductsListViewModel View Model
parent
109806d27e
commit
31e2fba368
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace SportsStore.WebUI.Models
|
||||
{
|
||||
public class ProductsListViewModel
|
||||
{
|
||||
public IEnumerable<Product> Products { get; set; }
|
||||
public PagingInfo PagingInfo { get; set; }
|
||||
}
|
||||
}
|
|
@ -167,6 +167,7 @@
|
|||
<Compile Include="HtmlHelpers\PagingHelpers.cs" />
|
||||
<Compile Include="Infrastructure\NinjectControllerFactory.cs" />
|
||||
<Compile Include="Models\PagingInfo.cs" />
|
||||
<Compile Include="Models\ProductsListViewModel.cs" />
|
||||
<Compile Include="Product.cs">
|
||||
<DependentUpon>EFDbContext.tt</DependentUpon>
|
||||
</Compile>
|
||||
|
|
Loading…
Reference in New Issue