public IActionResult GetCryptoCurrencies() { // should await the call return(Ok(_cryptoCurrencyService.GetAvailableCryptocurrencies())); }
public IActionResult GetAllCryptocurrencies() { return(Ok(_cryptoCurrencyService.GetAvailableCryptocurrencies().Result)); }
public async Task <OkObjectResult> GetAllCryptocurrencies() // Gets all available cryptocurrencies { return(Ok(await _cryptoCurrencyService.GetAvailableCryptocurrencies())); }