예제 #1
0
 public virtual List <SelectListItem> GetVariantOptions(ProductVariant productVariant, bool showName = true,
                                                        bool showOptionValues = true)
 {
     return(Variants.BuildSelectItemList(variant => variant.GetSelectOptionName(showName, showOptionValues),
                                         variant => variant.Id.ToString(),
                                         variant => variant == productVariant,
                                         emptyItem: null));
 }