//TODO use currencies int this method instead of currencynames public decimal Exchange(string currencyIsoNameFrom, string currencyIsoNameTo, decimal amount) { //DKK var baseCurrency = _currencyRateService.GetBaseCurrency(); var currencyFrom = _currencyRateService.GetCurrencyRate(currencyIsoNameFrom); var currencyTo = _currencyRateService.GetCurrencyRate(currencyIsoNameTo); IExchangeCase exchangeCase = new ExchangeCaseFactory().GetExchangeCase(currencyFrom, currencyTo, baseCurrency); return(exchangeCase.Exchange(amount)); }