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

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