9.3.2 Adding the Checkout Process; Listing 9-13 Applying the Display attribute to the ShippingDetails.cs File

This commit is contained in:
Jason Zhu 2021-09-22 14:20:20 +10:00
parent 9491c62113
commit 41f564e967

View File

@ -13,8 +13,11 @@ namespace SportsStore.Domain.Entities
public string Name { get; set; }
[Required(ErrorMessage = "Please enter the first address line")]
[Display(Name = "Line 1")]
public string Line1 { get; set; }
[Display(Name = "Line 2")]
public string Line2 { get; set; }
[Display(Name = "Line 3")]
public string Line3 { get; set; }
[Required(ErrorMessage = "Please enter a city name")]