コード例 #1
0
        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()));
 }