show currect news list and user name in news detals

This commit is contained in:
2024-08-01 16:35:13 +03:30
parent 075e75e62d
commit d73b5dc266
5 changed files with 101 additions and 38 deletions

View File

@ -2,6 +2,7 @@
@{
ViewBag.Title = "Details";
}
<h2>Details</h2>
@ -23,8 +24,7 @@
</dt>
<dd>
<img src="@Model.image" />
@Html.DisplayFor(model => model.image)
<img src="@Url.Content(Model.image)" height="270" width="200" />
</dd>
<dt>
@ -72,7 +72,7 @@
</dt>
<dd>
@Html.DisplayFor(model => model.userID)
@ViewBag.user.displayname
</dd>
<dt>