public IActionResult GetCryptoCurrencies()
        {
            // should await the call

            return(Ok(_cryptoCurrencyService.GetAvailableCryptocurrencies()));
        }
示例#2
0
 public IActionResult GetAllCryptocurrencies()
 {
     return(Ok(_cryptoCurrencyService.GetAvailableCryptocurrencies().Result));
 }
示例#3
0
 public async Task <OkObjectResult> GetAllCryptocurrencies()
 // Gets all available cryptocurrencies
 {
     return(Ok(await _cryptoCurrencyService.GetAvailableCryptocurrencies()));
 }