@model BlogPost @{ ViewData["Title"]=Model.Title; } @section scripts { }

@Model.Title

@Html.DisplayFor(m=>m.Author) @Html.DisplayFor(m=>m.Content)
@if (Model.Comments!=null) { foreach (var comment in Model.Comments.Where(c=>c.ParentId==null)) { @await Component.InvokeAsync("Comment", new { id = comment.Id }) } }
@if (User.GetUserId()!=null) {
} else {

Vous devez être identifié pour commenter.

} @if ((await AuthorizationService.AuthorizeAsync(User, Model, new EditPermission())).Succeeded) { Edit } Back to List