Esempio n. 1
0
 //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;
 }
Esempio n. 2
0
 //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;
 }
Esempio n. 3
0
 //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;
 }