public DiscountsController(DiscountsRepository repo, OffersRepository offerRepo, BrandsRepository brandRepo, ProductGroupsRepository productGroupRepo, ProductsRepository productRepo)
 {
     _repo             = repo;
     _offerRepo        = offerRepo;
     _brandRepo        = brandRepo;
     _productGroupRepo = productGroupRepo;
     _productRepo      = productRepo;
 }
Example #2
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context   = context;
     Brands     = new BrandsRepository(context);
     Categories = new CategoriesRepository(context);
     Parts      = new PartsRepository(context);
     Suppliers  = new SupplierRepository(context);
 }
Example #3
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context               = context;
     Brands                 = new BrandsRepository(context);
     Categories             = new CategoriesRepository(context);
     Parts                  = new PartsRepository(context);
     Suppliers              = new SupplierRepository(context);
     PartsWithdrawHistories = new PartsWithdrawHistoryRepository(context);
     PartsPurchaseRecords   = new PartsPurchaseRecordsReposiroty(context);
     Inventory              = new InventoryRepository(context);
     Addresses              = new AddressRepository(context);
 }
 public BrandsController(IConfiguration configuration, IDataProtectionProvider provider)
 {
     brandsRepository = new BrandsRepository(configuration);
     _protector       = provider.CreateProtector("DataProtector");
 }
Example #5
0
 public BrandsService(BrandsRepository repo)
 {
     _repo = repo;
 }
Example #6
0
 public BrandsController(BrandsRepository repo)
 {
     _repo = repo;
 }