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); }
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); }