Esempio n. 1
0
        public async Task <List <Currency> > FetchCurrenciesAsync(CancellationToken token = default)
        {
            try
            {
                var result =
                    await _dataClient.GetAsync <List <Currency> >(FetchCurrenciesPath, token);

                return(result);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(null);
            }
        }