@page "{id?}" @model BlogModel @using yaflay.ru.Models.Tables @{ if (Model.Id == 0) ViewData["Title"] = "Blog"; } @{ string path = $"{this.Request.Scheme}://{this.Request.Host}"; } @{ if (Model.Id != 0) { Blogs? Post = Startup.dbContext.Blogs.FirstOrDefault(k => k.Id == Model.Id); if (Post == null) { ViewData["Title"] = "Blogs";
@Html.Raw(Post.Text)