I an razor page template I would like to access product tage on varius products. I know I can get some of the information directly from the product class
How can I do that?
<div>
@{
foreach (var ProductID in ProductIDs)
{
var Product = Dynamicweb.eCommerce.Products.Product.GetProductByID(ProductID);
<div>
Name from class: @Product.Name
</div>
}
}
</div>