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

/MvcMusicStore/Views/Store/Details.cshtml

#
Razor | 30 lines | 26 code | 4 blank | 0 comment | 0 complexity | 2df4444060e11ebd86b5dbc39a2b1c57 MD5 | raw file
 1@model MvcMusicStore.Models.Album
 2
 3@{
 4    ViewBag.Title = "Album - " + Model.Title;
 5}
 6
 7<h2>@Model.Title</h2>
 8
 9<p>
10    <img alt="@Model.Title" src="@Model.AlbumArtUrl" />
11</p>
12
13<div id="album-details">
14    <p>
15        <em>Genre:</em>
16        @Model.Genre.Name
17    </p>
18    <p>
19        <em>Artist:</em>
20        @Model.Artist.Name
21    </p>
22    <p>
23        <em>Price:</em>
24        @String.Format("{0:F}", Model.Price)
25    </p>
26    <p class="button">
27        @Html.ActionLink("Add to cart", "AddToCart", 
28        "ShoppingCart", new { id = Model.AlbumId }, "")
29    </p>
30</div>