Table of Contents

Class ProductInfoViewModelExtensions

Namespace
Dynamicweb.Ecommerce.ProductCatalog
Assembly
Dynamicweb.Ecommerce.dll

Extension methods for expanding product infos into full product viewmodels.

public static class ProductInfoViewModelExtensions
Inheritance
ProductInfoViewModelExtensions
Inherited Members

Methods

GetProduct(ProductInfoViewModel)

Gets a ProductViewModel for the specified product info

public static ProductViewModel GetProduct(this ProductInfoViewModel productInfo)

Parameters

productInfo ProductInfoViewModel

Returns

ProductViewModel

GetProducts(List<ProductInfoViewModel>)

Gets a collection of ProductViewModel for the specified product infos

public static IEnumerable<ProductViewModel> GetProducts(this List<ProductInfoViewModel> productInfo)

Parameters

productInfo List<ProductInfoViewModel>

Returns

IEnumerable<ProductViewModel>

See Also

To top