From 278c453162855be5d60c6d252b2613156c0df69a Mon Sep 17 00:00:00 2001 From: Jess Chadwick Date: Mon, 11 Jun 2018 22:11:34 -0400 Subject: [PATCH] Re-recording 02_03 --- Ch02/02_03_End/Website/Controllers/HomeController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ch02/02_03_End/Website/Controllers/HomeController.cs b/Ch02/02_03_End/Website/Controllers/HomeController.cs index 74b4cf1..a280156 100644 --- a/Ch02/02_03_End/Website/Controllers/HomeController.cs +++ b/Ch02/02_03_End/Website/Controllers/HomeController.cs @@ -7,7 +7,7 @@ using System.Web.Mvc; namespace HPlusSports.Controllers { - [RoutePrefix("home/{name}")] + [RoutePrefix("home")] public class HomeController : Controller { private readonly HPlusSportsDbContext _context; @@ -34,7 +34,7 @@ namespace HPlusSports.Controllers return View(categories); } - [Route("about")] + [Route("about/{name?}")] public ActionResult About(string name) { ViewBag.Message = "Your application description page, " + name;