File tree Expand file tree Collapse file tree 2 files changed +0
-10
lines changed
src/Components/Samples/BlazorUnitedApp Expand file tree Collapse file tree 2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change 66
77<PageTitle >Validated Order Form</PageTitle >
88
9- <h3 >Validated Order Form</h3 >
10-
119<EditForm Model =" @order" OnValidSubmit =" @HandleValidSubmit" OnInvalidSubmit =" @HandleInvalidSubmit" >
1210 <DataAnnotationsValidator />
1311
4846 <InputText id =" shippingStreet" @bind-Value =" order.CustomerDetails.ShippingAddress.Street" class =" form-control" />
4947 <ValidationMessage For =" @(() => order.CustomerDetails.ShippingAddress.Street)" />
5048 </div >
51- <div class =" mb-3" >
52- <label for =" shippingCity" class =" form-label" >City</label >
53- <InputText id =" shippingCity" @bind-Value =" order.CustomerDetails.ShippingAddress.City" class =" form-control" />
54- <ValidationMessage For =" @(() => order.CustomerDetails.ShippingAddress.City)" />
55- </div >
5649 <div class =" mb-3" >
5750 <label for =" shippingZipCode" class =" form-label" >Zip Code</label >
5851 <InputText id =" shippingZipCode" @bind-Value =" order.CustomerDetails.ShippingAddress.ZipCode" class =" form-control" />
Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ public class AddressModel
77 [ Required ( ErrorMessage = "Street is required." ) ]
88 public string ? Street { get ; set ; }
99
10- [ Required ( ErrorMessage = "City is required." ) ]
11- public string ? City { get ; set ; }
12-
1310 [ Required ( ErrorMessage = "Zip Code is required." ) ]
1411 [ StringLength ( 10 , MinimumLength = 5 , ErrorMessage = "Zip Code must be between 5 and 10 characters." ) ]
1512 public string ? ZipCode { get ; set ; }
You can’t perform that action at this time.
0 commit comments