@model SampleViewModel

@{
    ViewData["Title"] = "Buy Item Sample";
}

@section Scripts {
    @Html.Partial("_ValidationScriptsPartial");
}

<h1>Buy Item Sample</h1>

<form asp-controller="Home" asp-action="BuyItem" asp-route-id="@Model.Id" asp-route-count="@Model.Count">

    <div class="form-group">
        <label asp-for="Id"></label>
        <input class="form-control" asp-for="Id" />
        <span asp-validation-for="Id"></span>
    </div>

    <div class="form-group">
        <label asp-for="Count"></label>
        <input class="form-control" asp-for="Count" />
        <span asp-validation-for="Count"></span>
    </div>

    <button type="submit" class="btn btn-primary">Submit</button>
    <div asp-validation-summary="All"></div>
</form>
