Class EcommerceViewModelTemplateHelperExtensions
- Namespace
- Dynamicweb.Ecommerce.Frontend
- Assembly
- Dynamicweb.Ecommerce.dll
Provides extension methods for view model templates through ViewModelTemplateHelper.
public static class EcommerceViewModelTemplateHelperExtensions
- Inheritance
-
EcommerceViewModelTemplateHelperExtensions
- Inherited Members
Methods
GetCountries(ViewModelTemplateHelper)
Retrieves a collection of countries as CountryViewModel objects.
public static ICollection<CountryViewModel> GetCountries(this ViewModelTemplateHelper helper)
Parameters
helperViewModelTemplateHelperThe ViewModelTemplateHelper instance used to retrieve the countries.
Returns
- ICollection<CountryViewModel>
A collection of CountryViewModel objects, ordered by their names.
Exceptions
- ArgumentNullException
Thrown when the
helperis null.
GetOrderFlowsByOrderType(ViewModelTemplateHelper, OrderType)
Retrieves a collection of order flow view models based on the specified order type.
public static ICollection<OrderFlowViewModel> GetOrderFlowsByOrderType(this ViewModelTemplateHelper helper, OrderType orderType)
Parameters
helperViewModelTemplateHelperThe ViewModelTemplateHelper instance used to retrieve the order flows.
orderTypeOrderTypeThe OrderType for which to retrieve the order flows.
Returns
- ICollection<OrderFlowViewModel>
A collection of OrderFlowViewModel objects corresponding to the specified order type.
Exceptions
- ArgumentNullException
Thrown when the
helperis null.