From 77503472faaff224438a3aec19b70c71ee0a4bb1 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Tue, 13 Jul 2021 23:42:07 +1000 Subject: [PATCH] e.g. 3.2 Modifying the Controller to Render a View --- .../PartyInvites/Controllers/HomeController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chap3_your_first_mvc_app/PartyInvites/Controllers/HomeController.cs b/chap3_your_first_mvc_app/PartyInvites/Controllers/HomeController.cs index b7a50ee..2165da2 100644 --- a/chap3_your_first_mvc_app/PartyInvites/Controllers/HomeController.cs +++ b/chap3_your_first_mvc_app/PartyInvites/Controllers/HomeController.cs @@ -8,9 +8,9 @@ namespace PartyInvites.Controllers { public class HomeController : Controller { - public string Index() + public ActionResult Index() { - return "Hello world"; + return View(); } public ActionResult About()