public CategoriesController() { dbContext = new App_DBEntities(); categoryRepo = new CategoryRepository(dbContext); }
public LocationRepository(App_DBEntities _context) { this.dbCtx = _context; }
protected override void Initialize(System.Web.Http.Controllers.HttpControllerContext controllerContext) { db = new App_DBEntities(); productRepository = new ProductRepository(db); base.Initialize(controllerContext); }
public ProductRepository(App_DBEntities _context) { this.dbContext = _context; }
public CategoryRepository(App_DBEntities _context) { dbContext = _context; }
public ProductsController() { dbContext = new App_DBEntities(); prodRepo = new ProductRepository(dbContext); }
protected override void Initialize(System.Web.Http.Controllers.HttpControllerContext controllerContext) { db = new App_DBEntities(); productRepository = new ProductRepository(db); base.Initialize(controllerContext); }
public LocationsController() { dbContext = new App_DBEntities(); repository = new LocationRepository(dbContext); }