@@ -12,11 +13,13 @@ @if (ViewContext.IsElevated()) {
+ asp-controller="Editor" asp-action="DeleteArticle" asp-route-id="@(Model.Article.Id)">
} @Html.Raw(Model.Article.ContentHtml) +
+ @(await Html.RenderComponentAsync(RenderMode.ServerPrerendered))
@@ -31,4 +34,4 @@

Наверх

- + \ No newline at end of file diff --git a/BadNews/Views/Shared/_Layout.cshtml b/BadNews/Views/Shared/_Layout.cshtml index 2064456..e396dc8 100644 --- a/BadNews/Views/Shared/_Layout.cshtml +++ b/BadNews/Views/Shared/_Layout.cshtml @@ -1,4 +1,5 @@ -@using BadNews.Elevation + +@using BadNews.Elevation @@ -28,10 +29,11 @@ @RenderBody() - + + \ No newline at end of file diff --git a/BadNews/_Imports.razor b/BadNews/_Imports.razor new file mode 100644 index 0000000..a5e7de8 --- /dev/null +++ b/BadNews/_Imports.razor @@ -0,0 +1,5 @@ +@using Microsoft.AspNetCore.Authorization; +@using Microsoft.AspNetCore.Components.Authorization; +@using Microsoft.AspNetCore.Components.Forms; +@using Microsoft.AspNetCore.Components.Routing; +@using Microsoft.AspNetCore.Components.Web; \ No newline at end of file