// MVC framework will call this constructor with the // appropriate context instance, which was registered as // a framework service in Startup.cs public MenuController(CheeseDBContext context) { this.context = context; }
public CategoryController(CheeseDBContext dbContext) { context = dbContext; }
public MenuController(CheeseDBContext dBContext) { context = dBContext; }
public CheeseController(CheeseDBContext dbContext) { context = dbContext; }
public ExampleController(CheeseDBContext context) { this.context = context; }