public HomeController(WPContext context) { dbContext = context; }
// here we can "inject" our context service into the constructor public UsersController(WPContext context) { dbContext = context; }
public WeddingController(WPContext context) { _db = context; }
public HomeController(WPContext context) { _db = context; }
// here we can "inject" our context service into the constructor public WeddingController(WPContext context) { dbContext = context; }
public PlantService(WPContext context) { _context = context; }