diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Basket/UserAddressProvider.cs b/apps/public-web/src/EShopOnAbp.PublicWeb/Basket/UserAddressProvider.cs index aa61de17..40b090a5 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Basket/UserAddressProvider.cs +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Basket/UserAddressProvider.cs @@ -12,15 +12,22 @@ public class UserAddressProvider : ITransientDependency new() { Id = 1, - Name = EShopOnAbpPaymentConsts.DemoAddressTypes.Home, - Description = "Cecilia Chapman Senior 711-2880 Nulla St. Mankato Mississippi 96522/USA", + Type = EShopOnAbpPaymentConsts.DemoAddressTypes.Home, + Street = "Cecilia Chapman Senior 711-2880 Nulla St.", + City = "Mankato Mississippi", + Country = "USA", + ZipCode = "96522", IsDefault = true }, new() { Id = 2, - Name = EShopOnAbpPaymentConsts.DemoAddressTypes.Work, - Description = "Yeşilköy Serbest Bölge Mah. E-Blok Sokak E1 Blok No:2, Bakırköy/İstanbul" + Type = EShopOnAbpPaymentConsts.DemoAddressTypes.Work, + Street = "Yeşilköy Serbest Bölge Mah. E-Blok Sk. Bakırköy", + City = "İstanbul", + Country = "Turkey", + ZipCode = "34149", + Description = "Near Ataturk Airport" } }; } @@ -29,7 +36,16 @@ public class UserAddressProvider : ITransientDependency public class AddressDto { public int Id { get; set; } - public string Name { get; set; } - public string Description { get; set; } + public string Type { get; set; } public bool IsDefault { get; set; } = false; + public string Description { get; set; } + public string Street { get; set; } + public string City { get; set; } + public string Country { get; set; } + public string ZipCode { get; set; } + + public override string ToString() + { + return $"{Street} {ZipCode} {City}/{Country}"; + } } \ No newline at end of file diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Components/Payment/Default.cshtml b/apps/public-web/src/EShopOnAbp.PublicWeb/Components/Payment/Default.cshtml index bccdea48..96f2a3b5 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Components/Payment/Default.cshtml +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Components/Payment/Default.cshtml @@ -24,10 +24,11 @@ var address = Model.Address[(i * defaultColumnSize) + j]; string isSelected = address.IsDefault ? "is-selected" : string.Empty;
@address.Description
+@address.ToString()