public CategoriesController(HamperStoreEntities context) { _context = context; }
public CustomersController(HamperStoreEntities context) { _context = context; }
public ProductsController(HamperStoreEntities context) { _context = context; }
public HomeController(HamperStoreEntities context) { _context = context; }
//Dependency Injection of HamperStoreEntities Context public CategoryService(HamperStoreEntities context) { //We can now use _context variable to call context within this Service _context = context; }