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

/MvcMusicStore/Views/Home/Index.cshtml

#
Razor | 20 lines | 17 code | 3 blank | 0 comment | 0 complexity | 046b2e70e4a834a8b6b4340dfc89fa7d MD5 | raw file
 1@model List<MvcMusicStore.Models.Album>
 2@{
 3    ViewBag.Title = "ASP.NET MVC Music Store";
 4}
 5<div id="promotion">
 6</div>
 7
 8<h3><em>Fresh</em> off the grill</h3>
 9
10<ul id="album-list">
11    @foreach (var album in Model)
12    {
13        <li><a href="@Url.Action("Details", "Store",
14                new { id = album.AlbumId })">
15
16            <img alt="@album.Title" src="@album.AlbumArtUrl" />
17            <span>@album.Title</span> </a>
18        </li>
19    }
20</ul>