Exemplo n.º 1
0
 public AssemblyService(ComputerShopContext context)
 {
     categoryRepo            = new CategoryRepository(context);
     productRepo             = new ProductRepository(context);
     assemblyRepo            = new AssemblyRepository(context);
     featureRepo             = new FeatureRepository(context);
     featuresForCategoryRepo = new FeaturesForCategoryRepository(context);
     featureValueRepo        = new FeatureValueRepository(context);
     userRepo = new UserRepository(context);
 }
Exemplo n.º 2
0
 public AdminService(ComputerShopContext context)
 {
     groupRepo              = new GroupRepository(context);
     categoryRepo           = new CategoryRepository(context);
     producentRepo          = new ProducentRepository(context);
     featureRepo            = new FeatureRepository(context);
     featureValueRepo       = new FeatureValueRepository(context);
     featureForCategoryRepo = new FeaturesForCategoryRepository(context);
     productRepo            = new ProductRepository(context);
     featureValueRepo       = new FeatureValueRepository(context);
     userRepo = new UserRepository(context);
     featureValueForProductRepo = new FeatureValueForProductRepository(context);
 }