diff --git a/src/MusicStore/Views/Store/Details.cshtml b/src/MusicStore/Views/Store/Details.cshtml index 4b07337acc..042f5dcd07 100644 --- a/src/MusicStore/Views/Store/Details.cshtml +++ b/src/MusicStore/Views/Store/Details.cshtml @@ -21,7 +21,7 @@

Price: - @Html.ValueFor(model => model.Price) + @Html.DisplayFor(model => model.Price)

@Html.ActionLink("Add to cart", "AddToCart", "ShoppingCart", new { id = Model.AlbumId }) diff --git a/src/MusicStore/Views/StoreManager/Details.cshtml b/src/MusicStore/Views/StoreManager/Details.cshtml index dd72e8d82f..3e65c71cc6 100644 --- a/src/MusicStore/Views/StoreManager/Details.cshtml +++ b/src/MusicStore/Views/StoreManager/Details.cshtml @@ -15,7 +15,7 @@

- @Html.ValueFor(model => model.Artist.Name) + @Html.DisplayFor(model => model.Artist.Name)
@@ -23,7 +23,7 @@
- @Html.ValueFor(model => model.Genre.Name) + @Html.DisplayFor(model => model.Genre.Name)
@@ -31,7 +31,7 @@
- @Html.ValueFor(model => model.Title) + @Html.DisplayFor(model => model.Title)
@@ -39,7 +39,7 @@
- @Html.ValueFor(model => model.Price) + @Html.DisplayFor(model => model.Price)
@@ -47,7 +47,7 @@
- @Html.ValueFor(model => model.AlbumArtUrl) + @Html.DisplayFor(model => model.AlbumArtUrl)
diff --git a/src/MusicStore/Views/StoreManager/Index.cshtml b/src/MusicStore/Views/StoreManager/Index.cshtml index 74f258fa3d..59a3f2798c 100644 --- a/src/MusicStore/Views/StoreManager/Index.cshtml +++ b/src/MusicStore/Views/StoreManager/Index.cshtml @@ -42,7 +42,7 @@ { - @Html.ValueFor(modelItem => item.Genre.Name) + @Html.DisplayFor(modelItem => item.Genre.Name) @Truncate(item.Artist.Name, 25) @@ -51,7 +51,7 @@ @Truncate(item.Title, 25) - @Html.ValueFor(modelItem => item.Price) + @Html.DisplayFor(modelItem => item.Price) @Html.ActionLink("Edit", "Edit", new { id = item.AlbumId }) |