diff --git a/SportsStore/SportsStore.Domain/Entities/ShippingDetails.cs b/SportsStore/SportsStore.Domain/Entities/ShippingDetails.cs new file mode 100644 index 0000000..0bf8806 --- /dev/null +++ b/SportsStore/SportsStore.Domain/Entities/ShippingDetails.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SportsStore.Domain.Entities +{ + public class ShippingDetails + { + [Required(ErrorMessage = "Please enter a name")] + public string Name { get; set; } + + [Required(ErrorMessage = "Please enter the first address line")] + public string Line1 { get; set; } + public string Line2 { get; set; } + public string Line3 { get; set; } + + [Required(ErrorMessage = "Please enter a city name")] + public string City { get; set; } + + [Required(ErrorMessage = "Please enter a state name")] + public string State { get; set; } + + public string Zip { get; set; } + + [Required(ErrorMessage = "Please enter a country name")] + public string Country { get; set; } + + public bool GiftWrap { get; set; } + } +} diff --git a/SportsStore/SportsStore.Domain/SportsStore.Domain.csproj b/SportsStore/SportsStore.Domain/SportsStore.Domain.csproj index 3b7d79a..a774924 100644 --- a/SportsStore/SportsStore.Domain/SportsStore.Domain.csproj +++ b/SportsStore/SportsStore.Domain/SportsStore.Domain.csproj @@ -77,6 +77,7 @@ +