Authors/Delete.cshtml
Authors/Index.cshtmlAuthors/Delete.cshtml
|
@model BookStore3.Models.Author
@{ ViewData["Title"] = "Delete"; }
<h1>Delete</h1>
<h3>Are you sure you want to delete this?</h3>
<div>
<h4>Author</h4><hr />
<dl class="row">
<dt class = "col-sm-2">
@Html.DisplayNameFor( model => model.Name )
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor( model => model.Name )
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor( model => model.Book )
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor( model => model.Book.Title )
</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<input type="submit" value="Delete" class="btn btn-danger" /> |
<a asp-action="Index">Back to List</a>
</form>
</div>
|
|
“I just joined a gym. I don’t work out there, I just joined it. It’s nice to have something to cancel.” — Todd Barry |