/// <summary>
 /// Initializes the model.
 /// </summary>
 private void Initialize()
 {
     _options = _display.ProductOptions.Select(x => x.ProductOptionAsProductOptionWrapper(this, this.OptionContentTypes)).ToArray();
     //_variantContent = new Lazy<IEnumerable<IProductVariantContent>>(() => _display.ProductVariantsAsProductVariantContent(this.OptionContentTypes, _options, CultureName, this));
     _varaintContent = _display.ProductVariantsAsProductVariantContent(this.OptionContentTypes, _options, CultureName, this);
 }
Example #2
0
 /// <summary>
 /// Initializes the model.
 /// </summary>
 private void Initialize()
 {
     _variantContent = new Lazy <IEnumerable <IProductVariantContent> >(() => _display.ProductVariantsAsProductVariantContent(CultureName));
 }