Ejemplo n.º 1
0
        public ExchangeRateModel GetModel()
        {
            var currenRates = CurrencyRates.getInstance();
            ExchangeRateModel currencies = JsonConvert.DeserializeObject <ExchangeRateModel>(currenRates.GetRates(_exchangeUrl, _exchangeHost));

            return(currencies);
        }
Ejemplo n.º 2
0
 public static CurrencyRates getInstance()
 {
     if (_instance == null)
     {
         _instance = new CurrencyRates();
     }
     return(_instance);
 }