Ejemplo n.º 1
0
        public async Task <Produit> GetProduitById(Guid id)
        {
            try
            {
                var result = await _stockApi.GetProduitById(id);

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