Exemplo n.º 1
0
        public async Task <IEnumerable <string> > GetLookupAsync(CancellationToken ct = default)
        {
            var result = await _repository.GetDataAsync();

            return(result?.Rates.Select(f => f.CurrencyType)
                   .OrderBy(l => l)
                   .ToList());
        }
Exemplo n.º 2
0
 public async Task <ExchangeRates> GetAllDataAsync(CancellationToken ct = default)
 {
     return(await _dataServiceCreator.GetDataAsync(ct));
 }