PageRenderTime 43ms CodeModel.GetById 13ms RepoModel.GetById 0ms 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. ViewBag.Title = "Album - " + Model.Title;
  4. }
  5. <h2>@Model.Title</h2>
  6. <p>
  7. <img alt="@Model.Title" src="@Model.AlbumArtUrl" />
  8. </p>
  9. <div id="album-details">
  10. <p>
  11. <em>Genre:</em>
  12. @Model.Genre.Name
  13. </p>
  14. <p>
  15. <em>Artist:</em>
  16. @Model.Artist.Name
  17. </p>
  18. <p>
  19. <em>Price:</em>
  20. @String.Format("{0:F}", Model.Price)
  21. </p>
  22. <p class="button">
  23. @Html.ActionLink("Add to cart", "AddToCart",
  24. "ShoppingCart", new { id = Model.AlbumId }, "")
  25. </p>
  26. </div>