示例#1
0
        public async Task <IEnumerable <Achat> > GetAchats()
        {
            try
            {
                var result = await _stockApi.GetAchats();

                return(result.Content);
            }
            catch (ApiException e)
            {
                throw new StockApiException(e.Message);
            }
            catch (Exception e)
            {
                _logger.LogError(e.Message);
                throw;
            }
        }