summaryrefslogtreecommitdiff
path: root/Views/Home
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-02-07 07:31:27 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-02-07 07:31:27 +0300
commit189a5fa7010fce2982b7f7d8672e8d2c12ae99b8 (patch)
tree1bfc2bc8c1830a508c263ea2050d4bb13e6f94ce /Views/Home
parent29478524c7aa12b0d95ebbc4b8b168119c9557c4 (diff)
Add anchor tag helper
Diffstat (limited to 'Views/Home')
-rw-r--r--Views/Home/Index.cshtml4
1 files changed, 3 insertions, 1 deletions
diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml
index 5cc07f3..2d3a4b4 100644
--- a/Views/Home/Index.cshtml
+++ b/Views/Home/Index.cshtml
@@ -1,4 +1,6 @@
@model IQueryable<MyDarling.Models.UnderwearBundle>;
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
+
@{
Layout = "_Layout";
}
@@ -58,7 +60,7 @@
{
<div class="col mb-5">
<div class="card h-100">
- <a href="/bundle/show/@bundle.Id"><img class="card-img-top"
+ <a asp-controller="Bundle" asp-action="Show" asp-route-id="@bundle.Id"><img class="card-img-top"
src="@bundle.Figures.FirstOrDefault()?.FilePath" alt="..." /></a>
<div class="card-body p-4">
<div class="text-center">