Files
newswebappTest/Views/news/Details.cshtml
lianpi3 a74072b491 add categories(add, list, list news)
minor form changes
add news controller and views
2024-07-28 18:35:11 +03:30

99 lines
1.9 KiB
Plaintext

@model WebApplication1.Models.news
@{
ViewBag.Title = "Details";
}
<h2>Details</h2>
<div>
<h4>news</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.title)
</dt>
<dd>
@Html.DisplayFor(model => model.title)
</dd>
<dt>
@Html.DisplayNameFor(model => model.image)
</dt>
<dd>
@Html.DisplayFor(model => model.image)
</dd>
<dt>
@Html.DisplayNameFor(model => model.link)
</dt>
<dd>
@Html.DisplayFor(model => model.link)
</dd>
<dt>
@Html.DisplayNameFor(model => model.summary)
</dt>
<dd>
@Html.DisplayFor(model => model.summary)
</dd>
<dt>
@Html.DisplayNameFor(model => model.cat)
</dt>
<dd>
@Html.DisplayFor(model => model.cat)
</dd>
<dt>
@Html.DisplayNameFor(model => model.tag)
</dt>
<dd>
@Html.DisplayFor(model => model.tag)
</dd>
<dt>
@Html.DisplayNameFor(model => model.publishDate)
</dt>
<dd>
@Html.DisplayFor(model => model.publishDate)
</dd>
<dt>
@Html.DisplayNameFor(model => model.userID)
</dt>
<dd>
@Html.DisplayFor(model => model.userID)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Content)
</dt>
<dd>
@Html.DisplayFor(model => model.Content)
</dd>
<dt>
@Html.DisplayNameFor(model => model.views)
</dt>
<dd>
@Html.DisplayFor(model => model.views)
</dd>
</dl>
</div>
<p>
@Html.ActionLink("Edit", "Edit", new { id = Model.ID }) |
@Html.ActionLink("Back to List", "Index")
</p>