/// <summary>
 /// Creates a new instance of the controller and initialises the DbContext
 /// </summary>
 /// <param name="context"></param>
 public BookingsController(CateringDbContext context)
 {
     _context = context;
 }
Exemple #2
0
 public FoodController(CateringDbContext context) => _context = context;
 public ValuesController(CateringDbContext context)
 {
     _context = context;
 }
Exemple #4
0
 /// <summary>
 /// Creates a new instance of the controller, initialises database
 /// </summary>
 /// <param name="context"></param>
 public FoodMenusController(CateringDbContext context)
 {
     _context = context;
 }
 public MenuController(CateringDbContext context)
 {
     _context = context;
 }