public DiscountsController(DiscountsRepository repo, OffersRepository offerRepo, BrandsRepository brandRepo, ProductGroupsRepository productGroupRepo, ProductsRepository productRepo) { _repo = repo; _offerRepo = offerRepo; _brandRepo = brandRepo; _productGroupRepo = productGroupRepo; _productRepo = productRepo; }
public UnitOfWork(ApplicationDbContext context) { _context = context; Brands = new BrandsRepository(context); Categories = new CategoriesRepository(context); Parts = new PartsRepository(context); Suppliers = new SupplierRepository(context); }
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"); }
public BrandsService(BrandsRepository repo) { _repo = repo; }
public BrandsController(BrandsRepository repo) { _repo = repo; }