Beispiel #1
0
        private async Task SetBasesAsync(AbcMattressModel model, Product product)
        {
            var baseProductAttributes = (await _productAttributeService.GetAllProductAttributesAsync())
                                        .Where(pa => AbcMattressesConsts.IsBase(pa.Name));

            foreach (var pa in baseProductAttributes)
            {
                await MergeBasesAsync(model, pa, product);
            }
        }
Beispiel #2
0
        private async Task SetMattressProtectorsAsync(AbcMattressModel model, Product product)
        {
            var mattressProtectorAttributes = (await _productAttributeService.GetAllProductAttributesAsync())
                                              .Where(pa => AbcMattressesConsts.IsMattressProtector(pa.Name));

            foreach (var pa in mattressProtectorAttributes)
            {
                await MergeMattressProtectorsAsync(model, pa, product);
            }
        }