Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model WebApplication2.Models.BookModels
- @using WebApplication2.Models
- @*@model dynamic*@
- @{
- ViewBag.Title = "Details";
- }
- <h2>Details</h2>
- <div>
- <h4>BookModels</h4>
- <hr />
- <dl class="dl-horizontal">
- <dt>
- @Html.DisplayNameFor(model => model.Title)
- </dt>
- <dd>
- @Html.DisplayFor(model => model.Title)
- </dd>
- <dt>
- Person
- </dt>
- <dd>
- <select>
- @{
- foreach (var perm in ViewBag.persons)
- {
- <option value="perm.Id" customAttribute="item.Name">
- @perm.Name
- </option>
- }
- }
- </select>
- </dd>
- <dt>
- @Html.DisplayNameFor(model => model.Pages)
- </dt>
- <dd>
- @Html.DisplayFor(model => model.Pages)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => model.Created)
- </dt>
- <dd>
- @Html.DisplayFor(model => model.Created)
- </dd>
- </dl>
- </div>
- <p>
- @Html.ActionLink("Edit", "Edit", new { id = Model.Id }) |
- @Html.ActionLink("Back to List", "Index")
- </p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement