<#@ template language="C#" HostSpecific="True" #>
<#@ output extension=".cshtml" #>
<#@ include file="..\..\ViewHead.include.t4" #>
@addTagHelper "*, C1.Web.Mvc"
<#@ parameter name="ModelTypeName" type="System.String" #>

@model <#= ViewDataTypeName #>
<h3>Are you sure you want to delete this?</h3>
<div>
    <h4><#= ModelTypeName #></h4>
    <hr />
    <dl class="dl-horizontal">
<#@ include file="AspNet5InputView_Show.include.t4" #>
    </dl>
<#
var routParams = "";
var i = 1;
foreach (var primaryKey in PrimaryKeys)
{
    routParams = routParams + "asp-route-key" + i + "=\"@Model." + primaryKey.Key + "\" ";
    i++;
}
routParams = routParams.Substring(0, routParams.Length - 1);
#>
    <form asp-action="Delete" <#= routParams #>>
        <div class="form-actions no-color">
            <input type="submit" value="Delete" class="btn btn-default" /> |
            <a asp-action="Index">Back to List</a>
        </div>
    </form>
</div>
