public virtual FashionBundleViewModel Create(FashionBundle currentContent)
 {
     return(new FashionBundleViewModel
     {
         Bundle = currentContent,
         Images = currentContent.GetAssets <IContentImage>(_contentLoader, _urlResolver),
         Entries = _catalogContentService.GetVariants <FashionVariant>(currentContent).ToList()
     });
 }
예제 #2
0
        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);
        }