public OutletManagerService() { OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>()); _outletManagerRepo = new OutletManagerRepo(context); _crashLogRepo = new CrashLogRepo(context); }
//private readonly IProductPictureRepo _productPicRepo; public ProductService() { OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>()); _productUnitTypeRepo = new ProductUnitTypeRepo(context); _crashLogRepo = new CrashLogRepo(context); _inventoryLogRepo = new InventoryLogRepo(context); _productRepo = new ProductRepo(context); _outletManagerRepo = new OutletManagerRepo(context); _categoryRepo = new CategoryRepo(context); //_productPicRepo = new ProductPictureRepo(context); }