public ProductDto GetProduct()

in src/app/ContosoTraders.Api.Core/Services/Implementations/ProductService.cs [17:30]


    public ProductDto GetProduct(int id)
    {
        var productDao = _productRepository.Products.SingleOrDefault(product => product.Id == id);

        if (productDao is null) throw new ProductNotFoundException(id);

        var productDto = CustomMapping(productDao,
            _productRepository.Brands.ToArray(),
            _productRepository.Types.ToArray(),
            _productRepository.Features.ToArray(),
            false);

        return productDto;
    }