diff --git a/SportsStore/SportsStore.WebUI/Controllers/NavController.cs b/SportsStore/SportsStore.WebUI/Controllers/NavController.cs index b201885..66d2d6c 100644 --- a/SportsStore/SportsStore.WebUI/Controllers/NavController.cs +++ b/SportsStore/SportsStore.WebUI/Controllers/NavController.cs @@ -16,7 +16,8 @@ namespace SportsStore.WebUI.Controllers repository = repo; } - public PartialViewResult Menu(string category = null) + public PartialViewResult Menu(string category = null, + bool horizontalLayout = false) { ViewBag.SelectedCategory = category; @@ -25,7 +26,8 @@ namespace SportsStore.WebUI.Controllers .Distinct() .OrderBy(x => x); - return PartialView(categories); + string viewName = horizontalLayout ? "MenuHorizontal" : "Menu"; + return PartialView(viewName, categories); } } } \ No newline at end of file