diff --git a/SportsStore/SportsStore.WebUI/Views/Nav/Menu.cshtml b/SportsStore/SportsStore.WebUI/Views/Nav/Menu.cshtml index f2f05d8..43cf756 100644 --- a/SportsStore/SportsStore.WebUI/Views/Nav/Menu.cshtml +++ b/SportsStore/SportsStore.WebUI/Views/Nav/Menu.cshtml @@ -6,14 +6,16 @@ @foreach (var link in Model) { - @Html.RouteLink(link, new - { - controller = "Product", - action = "List", - category = link, - page = 1 - }, new - { - @class = "btn btn-block btn-default btn-lg" - }) + @Html.RouteLink(link, + new + { + controller = "Product", + action = "List", + category = link, + page = 1 + }, + new + { + @class = "btn btn-block btn-default btn-lg" + (link == ViewBag.SelectedCategory ? " btn-primary" : "") + }) }