@using Library.Presentation.Models
@model NavigationViewModel

@Html.ActionLink("All", "List", "Book", null,
    new { @class = "btn btn-block btn-default"})

@foreach (string link in Model.Genres)
{
    @Html.RouteLink(link,
    new {
        controller = "Book",
        action = "List",
        genre = link
    },
    new { @class = "btn btn-block btn-default" 
            + (link == Model.SelectedGenre ? " btn-primary" : "")
    }) 
}