I need to get a list of unique shipping addresses.
var shippingAddresses = ShopApi.Checkout.GetShippingAddresses(Shop.CommerceContext.AccountId).ToList();
This will give me a list of shipping addresses objects, but two of them have the same value for the Id column. How do I filter that or gets only one value to the list?
My ShippingAddress object looks like this.
public string Id { get; set; }
public string CustomerId { get; set; }
public string Address { get; set; }
public string Address2 { get; set; }
public string City { get; set; }
public string CountryId { get; set; }