|
|
|
@ -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}"; |
|
|
|
} |
|
|
|
} |