Exemple #1
0
        public async Task <Achat> GetAchatById(Guid id)
        {
            try
            {
                var result = await _stockApi.GetAchatById(id);

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