public CryptocurrencyController(IExchangeLogic exchangeLogic) { _exchangeLogic = exchangeLogic; apiUrl = "https://www.worldcoinindex.com/apiservice/json?key=" + ConfigurationManager.AppSettings["WorldCoinIndexApiKey"]; client = new HttpClient { BaseAddress = new Uri(apiUrl) }; client.DefaultRequestHeaders.Accept.Clear(); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); }
public ExchangeController(IExchangeLogic _logic) { logic = _logic; }