private async Task <Dictionary <string, CurrencyResponse> > GetCurrencies(CancellationToken cancellationToken) { var currencies = await _bitcoinPriceService.GetCurrentPrices(cancellationToken); return(currencies); }
public async Task <List <string> > Handle(GetAllCurrencyAbbreviationsQuery request, CancellationToken cancellationToken) { var response = await _bitcoinPriceService.GetCurrentPrices(cancellationToken); return(response .OrderBy(x => x.Key) .Select(x => x.Key) .ToList()); }