PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/MvcMusicStore/Views/Store/Browse.cshtml

#
Razor | 21 lines | 18 code | 3 blank | 0 comment | 0 complexity | abb1fb35df483492b1feb6f460c81446 MD5 | raw file
 1@model MvcMusicStore.Models.Genre
 2 
 3@{
 4    ViewBag.Title = "Browse Albums";
 5}
 6 
 7<div class="genre">
 8    <h3><em>@Model.Name</em> Albums</h3>
 9 
10    <ul id="album-list">
11        @foreach (var album in Model.Albums)
12        {
13            <li>
14                <a href="@Url.Action("Details", new { id = album.AlbumId })">
15                    <img alt="@album.Title" src="@album.AlbumArtUrl" />
16                    <span>@album.Title</span>
17                </a>
18            </li>
19        }
20    </ul>
21</div>