Ejemplo n.º 1
0
        public IActionResult GetCryptoCurrencies()
        {
            // should await the call

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