// here we can "inject" our context service into the constructor
 public CrudeliciousController(CrudeliciousContext context)
 {
     dbContext = context;
 }
Ejemplo n.º 2
0
 public HomeController(CrudeliciousContext context)
 {
     db = context;
 }