public IReadOnlyCollection <ProductResponse> GetAllProducts()
        {
            var products = _productDomainService.GetAllProducts();

            return(products.Select(x => x.MapToResponse()).ToList());
        }
 public IEnumerable <ProductDto> GetAllProducts()
 {
     return(_productDomainService.GetAllProducts().ToList()
            .Select(p => p.ToProductDto()));
 }