public virtual FashionBundleViewModel Create(FashionBundle currentContent) { return(new FashionBundleViewModel { Bundle = currentContent, Images = currentContent.GetAssets <IContentImage>(_contentLoader, _urlResolver), Entries = _catalogContentService.GetVariants <FashionVariant>(currentContent).ToList() }); }
public virtual FashionBundleViewModel Create(FashionBundle currentContent) { var variants = GetVariants(currentContent).ToList(); var viewModel = new FashionBundleViewModel { Bundle = currentContent, Images = currentContent.GetAssets <IContentImage>(_contentLoader, _urlResolver), Entries = variants }; return(viewModel); }