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