mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
Update improvements.md
This commit is contained in:
parent
e434ab9455
commit
adb70cefb6
|
|
@ -1192,10 +1192,12 @@ public async Task<IActionResult> DeleteCustomerPost(string customerId)
|
||||||
<div class="form-text">
|
<div class="form-text">
|
||||||
Customer ID must be five (5) upper case characters.
|
Customer ID must be five (5) upper case characters.
|
||||||
</div>
|
</div>
|
||||||
|
<span asp-validation-for="CustomerId" class="text-danger" />
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label" asp-for="CompanyName">Company Name</label>
|
<label class="form-label" asp-for="CompanyName">Company Name</label>
|
||||||
<input class="form-control" asp-for="CompanyName" />
|
<input class="form-control" asp-for="CompanyName" />
|
||||||
|
<span asp-validation-for="CompanyName" class="text-danger" />
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label" asp-for="ContactName">Contact Name</label>
|
<label class="form-label" asp-for="ContactName">Contact Name</label>
|
||||||
|
|
@ -1232,9 +1234,15 @@ public async Task<IActionResult> DeleteCustomerPost(string customerId)
|
||||||
class="btn btn-outline-secondary">
|
class="btn btn-outline-secondary">
|
||||||
Cancel and return to Customers
|
Cancel and return to Customers
|
||||||
</a>
|
</a>
|
||||||
@Html.ValidationSummary()
|
<div asp-validation-summary="All" class="text-danger" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@section Scripts {
|
||||||
|
@{
|
||||||
|
await Html.RenderPartialAsync("_ValidationScriptsPartial");
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**DeleteCustomer.cshtml Razor view**
|
**DeleteCustomer.cshtml Razor view**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue