PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/MvcMusicStore/Views/Store/Index.cshtml

#
Razor | 14 lines | 13 code | 1 blank | 0 comment | 0 complexity | 295104c1ad796780d40128a527d252fd MD5 | raw file
 1@model IEnumerable<MvcMusicStore.Models.Genre>
 2@{
 3    ViewBag.Title = "Store";
 4}
 5<h3>Browse Genres</h3>
 6
 7<p>
 8    Select from @Model.Count() genres:</p>
 9<ul>
10    @foreach (var genre in Model)
11    {
12        <li>@Html.ActionLink(genre.Name, "Browse", new { genre = genre.Name })</li>
13    }
14</ul>