public ProductsController() { dbContext = new App_DBEntities(); prodRepo = new ProductRepository(dbContext); }
public LocationRepository(App_DBEntities _context) { this.dbCtx = _context; }
public LocationsController() { dbContext = new App_DBEntities(); repository = new LocationRepository(dbContext); }
public CategoryRepository(App_DBEntities _context) { dbContext = _context; }
public CategoriesController() { dbContext = new App_DBEntities(); categoryRepo = new CategoryRepository(dbContext); }
public ProductRepository(App_DBEntities _context) { this.dbContext = _context; }