public MonthlySpecialsViewComponent(SpecialsDataContext db) { _db = db; }
public DataController(SpecialsDataContext specialsDb) { this._SpecialsDb = specialsDb; }
public HomeController(SpecialsDataContext db) { _db = db; }
public MonthlySpecialsViewComponent(SpecialsDataContext specials) { this._specials = specials; }
public MonthlySpecialsViewComponent(SpecialsDataContext specials) { //Use dependency injection to inject the SpecialsDataContext class into the constructor of this ViewComponent, and of course //to get dependency injection to work it needs to be registered in the Startup Class's ConfigureServices method. _specials = specials; }
public SpecialsViewComponent(SpecialsDataContext specials) { _specials = specials; }
public MonthlySpecialsViewComponent(SpecialsDataContext specialsDataContext) { _specialsDataContext = specialsDataContext; }