From 4436c60e795293d9c26d4e3eb531ef335519c24e Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Sat, 18 Sep 2021 18:22:36 +1000 Subject: [PATCH] 8.2 Building the Shopping Cart; Listing 8-15. The Contents of the CartIndexViewModel.cs File --- .../SportsStore.WebUI/Models/CartIndexViewModel.cs | 14 ++++++++++++++ .../SportsStore.WebUI/SportsStore.WebUI.csproj | 1 + 2 files changed, 15 insertions(+) create mode 100644 SportsStore/SportsStore.WebUI/Models/CartIndexViewModel.cs diff --git a/SportsStore/SportsStore.WebUI/Models/CartIndexViewModel.cs b/SportsStore/SportsStore.WebUI/Models/CartIndexViewModel.cs new file mode 100644 index 0000000..3315ec3 --- /dev/null +++ b/SportsStore/SportsStore.WebUI/Models/CartIndexViewModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using SportsStore.Domain.Entities; + +namespace SportsStore.WebUI.Models +{ + public class CartIndexViewModel + { + public Cart Cart { get; set; } + public string ReturnUrl { 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 0072a59..4de9405 100644 --- a/SportsStore/SportsStore.WebUI/SportsStore.WebUI.csproj +++ b/SportsStore/SportsStore.WebUI/SportsStore.WebUI.csproj @@ -138,6 +138,7 @@ +