You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
@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>
|