//Constructor; The value passed into this parameter is passed from the IServicesCollection through dependency injection. //Like this we have access to an instance of the NemesysContext class (which contains the DB provider and connection string) inside this controller public HomeController(NemesysContext context) { _context = context; }
//Constructor; The value passed into this parameter is passed from the IServicesCollection through dependency injection. //Like this we have access to an instance of the NemesysContext class (which contains the DB provider and connection string) inside this controller public InvestigationController(NemesysContext context) { _context = context; }
//Constructor; The value passed into this parameter is passed from the IServicesCollection through dependency injection. //Like this we have access to an instance of the NemesysContext class (which contains the DB provider and connection string) inside this controller public AccountController(NemesysContext context) { _context = context; }