@{
  Layout = "_Layout";
}

@model Sweets.Models.Treat

<h1 class="jumbotron">Delete Treat</h1>

<p>Are you sure you want to delete this Treat?</p>


<p>Name: @Html.DisplayFor(model => model.Name)</p>
@using (Html.BeginForm())
{
  <input type="submit" class="btn btn-danger" value="Delete" />
}

<input type="button" class="btn btn-info mt-3" value="Back to Treat List" onclick="location.href='@Url.Action("Index", "Treats")'" />