File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
NorthwindCRUD/Models/Dtos Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -5,19 +5,15 @@ namespace NorthwindCRUD.Models.Dtos
55{
66 public class AddressDto : IAddress
77 {
8- [ Required ( ErrorMessage = "Street is required." ) ]
98 [ StringLength ( 100 , ErrorMessage = "Street cannot exceed 100 characters." ) ]
109 public string Street { get ; set ; }
1110
12- [ Required ( ErrorMessage = "City is required." ) ]
1311 [ StringLength ( 50 , ErrorMessage = "City cannot exceed 50 characters." ) ]
1412 public string City { get ; set ; }
1513
16- [ Required ( ErrorMessage = "Region is required." ) ]
1714 [ StringLength ( 50 , ErrorMessage = "Region cannot exceed 50 characters." ) ]
1815 public string Region { get ; set ; }
1916
20- [ Required ( ErrorMessage = "PostalCode is required." ) ]
2117 [ StringLength ( 20 , ErrorMessage = "Postal code cannot exceed 20 characters." ) ]
2218 public string PostalCode { get ; set ; }
2319
You can’t perform that action at this time.
0 commit comments