Beispiel #1
0
 public ProductService()
 {
     _context                         = new ReklamaCustomEntities();
     _groupRepository                 = new Repository <Group>(_context);
     _productRepository               = new Repository <Product>(_context);
     _categoryRepository              = new Repository <Category>(_context);
     _productFeedbacksRepository      = new Repository <ProductFeedback>(_context);
     _productParameterValueRepository = new Repository <ProductParameterValue>(_context);
     _productImageRepository          = new Repository <ProductImage>(_context);
     _shopProductStatusRepository     = new Repository <ShopProductStatus>(_context);
 }
Beispiel #2
0
        public ShopsService()
        {
            var context = new ReklamaCustomEntities();

            _shopRepository         = new Repository <Shop>(context);
            _shopProductRepository  = new Repository <ShopProduct>(context);
            _shopFeedbackRepository = new Repository <ShopFeedback>(context);
            _categoriesRepository   = new Repository <Category>(context);
            _categoryParametersSectionRepository = new Repository <CategoryParametersSection>(context);
            _categoryParameterRepository         = new Repository <CategoryParameter>(context);
            _productssRepository     = new Repository <Product>(context);
            _groupsRepository        = new Repository <Group>(context);
            _manufacturersRepository = new Repository <Manufacturer>(context);
        }