0
0

Add anchor tag helper

This commit is contained in:
Sergey Chebotar 2023-02-07 07:31:27 +03:00
parent 29478524c7
commit 189a5fa701

View File

@ -1,4 +1,6 @@
@model IQueryable<MyDarling.Models.UnderwearBundle>; @model IQueryable<MyDarling.Models.UnderwearBundle>;
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{ @{
Layout = "_Layout"; Layout = "_Layout";
} }
@ -58,7 +60,7 @@
{ {
<div class="col mb-5"> <div class="col mb-5">
<div class="card h-100"> <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> src="@bundle.Figures.FirstOrDefault()?.FilePath" alt="..." /></a>
<div class="card-body p-4"> <div class="card-body p-4">
<div class="text-center"> <div class="text-center">