Class GroupInfoViewModelExtensions
- Namespace
- Dynamicweb.Ecommerce.ProductCatalog
- Assembly
- Dynamicweb.Ecommerce.dll
public static class GroupInfoViewModelExtensions
- Inheritance
-
GroupInfoViewModelExtensions
- Inherited Members
Methods
GetGroup(GroupInfoViewModel)
public static ProductGroupViewModel GetGroup(this GroupInfoViewModel groupInfo)
Parameters
groupInfo
GroupInfoViewModel
Returns
GetGroupLink(GroupInfoViewModel, int, bool)
Gets the primary link to a given group and that groups primary page id if that is specified - otherwise the specified page id.
public static string GetGroupLink(this GroupInfoViewModel group, int pageId, bool usePrimaryGroupPageId = true)
Parameters
group
GroupInfoViewModelThe group to create the link for
pageId
intThe pageid that should be used. If a pageid has been specified on the primary group in this shop that the product belongs to, that id will be used instead of the passed pageid.
usePrimaryGroupPageId
bool
Returns
SimplePath(IEnumerable<GroupInfoViewModel>)
public static string SimplePath(this IEnumerable<GroupInfoViewModel> groupInfos)
Parameters
groupInfos
IEnumerable<GroupInfoViewModel>