Beispiel #1
0
        public async Task <IActionResult> PostFillRates()
        {
            var cryptoCurrencies = new List <CryptoCurrency> {
                CryptoCurrency.BTC,
                CryptoCurrency.ETH,
                CryptoCurrency.LTC,
                CryptoCurrency.BCH
            };
            var result = await _manager.FillRates(cryptoCurrencies);

            if (!result)
            {
                throw new Exception("Some data was not found.");
            }

            return(NoContent());
        }