Fixed ugly bug: an old quickhack was causing wrong currency to be selected

This commit is contained in:
Rick Falkvinge
2015-03-07 00:47:50 +01:00
parent eab100c2d4
commit ef699b9abb
2 changed files with 1 additions and 14 deletions
-13
View File
@@ -46,19 +46,6 @@ namespace Swarmops.Basic.Types.Structure
public int PostalCodeLength { get; protected set; }
public string PostalCodeFormat { get; protected set; }
public int CurrencyId
{
get
{
if (this.Code == "SE")
{
return 1;
}
throw new NotImplementedException ("BasicCountry.CurrencyId");
}
}
#region IHasIdentity Members
public int Identity
+1 -1
View File
@@ -27,7 +27,7 @@ namespace Swarmops.Logic.Structure
public Currency Currency
{
get { return Currency.FromIdentity (CurrencyId); }
get { return Currency.FromCode (CurrencyCode); }
}
public static Country FromBasic (BasicCountry basic)