@page "{id:int}"
@model RestAPI2.Pages.DeleteApartment

@{
    ViewData["Title"] = "Delete";
}

<h1>Delete</h1>

<h3>Are you sure you want to delete this Apartment?</h3>
<div>
    <h4>Apartment</h4>
    <hr />
    <dl class="row">
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Apartment.Number)
        </dd>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Apartment.Floor)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Apartment.Floor)
        </dt>
        
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Apartment.NumberRoom)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Apartment.NumberRoom)
        </dt>
        
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Apartment.Population)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Apartment.Population)
        </dt>
        
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Apartment.FullArea)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Apartment.FullArea)
        </dt>
         <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Apartment.LivingSpace)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Apartment.LivingSpace)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Apartment.HouseNumber)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Apartment.HouseNumber)
        </dt>
        
    </dl>

    <form method="post">
        <input type="hidden" asp-for="Apartment.ID" />
        
        <a asp-page="./Apartment" id="boxlink"  id="submitBtn" class="boxlin2">Cancel</a>
         <input type="submit" value="Delete" class="btn btn-danger" /> 
    </form>
</div>