File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
NorthwindCRUD/Models/Dtos Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,19 @@ namespace NorthwindCRUD.Models.Dtos
55{
66 public class AddressDto : IAddress
77 {
8+ [ Required ( ErrorMessage = "Street is required." ) ]
89 [ StringLength ( 100 , ErrorMessage = "Street cannot exceed 100 characters." ) ]
910 public string Street { get ; set ; }
1011
12+ [ Required ( ErrorMessage = "City is required." ) ]
1113 [ StringLength ( 50 , ErrorMessage = "City cannot exceed 50 characters." ) ]
1214 public string City { get ; set ; }
1315
16+ [ Required ( ErrorMessage = "Region is required." ) ]
1417 [ StringLength ( 50 , ErrorMessage = "Region cannot exceed 50 characters." ) ]
1518 public string Region { get ; set ; }
1619
20+ [ Required ( ErrorMessage = "PostalCode is required." ) ]
1721 [ StringLength ( 20 , ErrorMessage = "Postal code cannot exceed 20 characters." ) ]
1822 public string PostalCode { get ; set ; }
1923
You can’t perform that action at this time.
0 commit comments