// create a constructor that takes the OrderDbContext object as a parameter // so that you can have access to the class in the framework(from the "startup.cs" file) public OrderController(ClockInDbContext dbContext) { context = dbContext; }
// create a constructor that takes the EmployeeDbContext object as a parameter // so that you can have access to the class in the framework(from the "startup.cs" file) public EmployeeController(ClockInDbContext dbContext) { context = dbContext; }
// create a constructor that takes the TrailerDbContext object as a parameter // so that you can have access to the class in the framework(from the "startup.cs" file) public TrailerController(ClockInDbContext dbContext) { context = dbContext; }