Пример #1
0
 public ProductController(ICategoryRepository categoryRepository, ISubcategoryRepository subcategoryRepository, IProductRepository productRepository, IProductAttributeRepository productAttributeRepository, ISubcategoryAttributeGroup subcategoryAttributeGroup, IAttributeGroupRepository attributeGroupRepository, IProductAttributeValueRepository productAttributeValueRepository)
 {
     categoryRepo      = categoryRepository;
     subcategoryRepo   = subcategoryRepository;
     productRepo       = productRepository;
     prodAttrRepo      = productAttributeRepository;
     subAttrGroupRepo  = subcategoryAttributeGroup;
     attrGroupRepo     = attributeGroupRepository;
     prodAttrValueRepo = productAttributeValueRepository;
 }
Пример #2
0
 public SubcategoryController(ICategoryRepository categoryRepository,
                              ISubcategoryRepository subcategoryRepository,
                              IProductRepository productRepository,
                              IProductAttributeRepository productAttributeRepository,
                              IAttributeGroupRepository attributeGroupRepository,
                              ISubcategoryAttributeGroup subcategoryAttributeGroupRepository,
                              ICustomAttributeGroupOptionsRepository customAttributeGroupRepository)
 {
     categoryRepo                  = categoryRepository;
     subcategoryRepo               = subcategoryRepository;
     productRepo                   = productRepository;
     productAttributeRepo          = productAttributeRepository;
     attributeGroupRepo            = attributeGroupRepository;
     subcategoryAttributeGroupRepo = subcategoryAttributeGroupRepository;
     customAttributeGroupRepo      = customAttributeGroupRepository;
 }