From 31e2fba3684a901b2692f0ec28abe85e9dba730e Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Sat, 21 Aug 2021 17:15:36 +1000 Subject: [PATCH] 7.5.1.3 Adding the View Model Data; e.g. 7.19 The ProductsListViewModel View Model --- .../Models/ProductsListViewModel.cs | 13 +++++++++++++ .../SportsStore.WebUI/SportsStore.WebUI.csproj | 1 + 2 files changed, 14 insertions(+) create mode 100644 SportsStore/SportsStore.WebUI/Models/ProductsListViewModel.cs diff --git a/SportsStore/SportsStore.WebUI/Models/ProductsListViewModel.cs b/SportsStore/SportsStore.WebUI/Models/ProductsListViewModel.cs new file mode 100644 index 0000000..edf1c44 --- /dev/null +++ b/SportsStore/SportsStore.WebUI/Models/ProductsListViewModel.cs @@ -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 Products { get; set; } + public PagingInfo PagingInfo { get; set; } + } +} \ No newline at end of file diff --git a/SportsStore/SportsStore.WebUI/SportsStore.WebUI.csproj b/SportsStore/SportsStore.WebUI/SportsStore.WebUI.csproj index f38f303..425fd2f 100644 --- a/SportsStore/SportsStore.WebUI/SportsStore.WebUI.csproj +++ b/SportsStore/SportsStore.WebUI/SportsStore.WebUI.csproj @@ -167,6 +167,7 @@ + EFDbContext.tt