Exemple #1
0
 public HomeController(WPContext context)
 {
     dbContext = context;
 }
 // here we can "inject" our context service into the constructor
 public UsersController(WPContext context)
 {
     dbContext = context;
 }
Exemple #3
0
 public WeddingController(WPContext context)
 {
     _db = context;
 }
Exemple #4
0
 public HomeController(WPContext context)
 {
     _db = context;
 }
 // here we can "inject" our context service into the constructor
 public WeddingController(WPContext context)
 {
     dbContext = context;
 }
Exemple #6
0
 public PlantService(WPContext context)
 {
     _context = context;
 }