// HomeController Constructor public HomeController() { // Initialize serviceLayer through dependency injection dbContext = new dashboard_demo(); saleAccess = new SaleAccess(dbContext); planAccess = new PlanAccess(dbContext); }
public PlanAccess(dashboard_demo context) { this.dbContext = context; }
public SaleAccess(dashboard_demo context) { this.dbContext = context; }