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

/MvcMusicStore/Views/StoreManager/Details.cshtml

#
Razor | 40 lines | 32 code | 8 blank | 0 comment | 0 complexity | 432d5ce421c2db837dbdc38422b3662b MD5 | raw file
 1@model MvcMusicStore.Models.Album
 2
 3@{
 4    ViewBag.Title = "Details";
 5}
 6
 7<h2>Details</h2>
 8
 9<fieldset>
10    <legend>Album</legend>
11
12    <div class="display-label">Genre</div>
13    <div class="display-field">
14        @Html.DisplayFor(model => model.Genre.Name)
15    </div>
16
17    <div class="display-label">Artist</div>
18    <div class="display-field">
19        @Html.DisplayFor(model => model.Artist.Name)
20    </div>
21
22    <div class="display-label">Title</div>
23    <div class="display-field">
24        @Html.DisplayFor(model => model.Title)
25    </div>
26
27    <div class="display-label">Price</div>
28    <div class="display-field">
29        @Html.DisplayFor(model => model.Price)
30    </div>
31
32    <div class="display-label">AlbumArtUrl</div>
33    <div class="display-field">
34        @Html.DisplayFor(model => model.AlbumArtUrl)
35    </div>
36</fieldset>
37<p>
38    @Html.ActionLink("Edit", "Edit", new { id=Model.AlbumId }) |
39    @Html.ActionLink("Back to List", "Index")
40</p>