From 5b697839e7dba0f00ac255578179d593a6f53dd7 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Wed, 8 Sep 2021 22:12:51 +1000 Subject: [PATCH] 8.1.3.1 Creating the Navigation Controller; Listing 8-5 Adding The Menu Action Method to the NavController.cs File --- .../Controllers/NavController.cs | 16 ++++++++++++++++ .../SportsStore.WebUI/SportsStore.WebUI.csproj | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 SportsStore/SportsStore.WebUI/Controllers/NavController.cs diff --git a/SportsStore/SportsStore.WebUI/Controllers/NavController.cs b/SportsStore/SportsStore.WebUI/Controllers/NavController.cs new file mode 100644 index 0000000..99019bc --- /dev/null +++ b/SportsStore/SportsStore.WebUI/Controllers/NavController.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; + +namespace SportsStore.WebUI.Controllers +{ + public class NavController : Controller + { + public string Menu() + { + return "Hello from NavController"; + } + } +} \ No newline at end of file diff --git a/SportsStore/SportsStore.WebUI/SportsStore.WebUI.csproj b/SportsStore/SportsStore.WebUI/SportsStore.WebUI.csproj index dd685db..4a473d2 100644 --- a/SportsStore/SportsStore.WebUI/SportsStore.WebUI.csproj +++ b/SportsStore/SportsStore.WebUI/SportsStore.WebUI.csproj @@ -130,6 +130,7 @@ + Global.asax @@ -157,6 +158,7 @@ +