Re-recording 02_03

This commit is contained in:
Jess Chadwick
2018-06-11 22:11:34 -04:00
parent cedb4e8f46
commit 278c453162

View File

@ -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;