public APIDayController(OneDayFlatContext context)
 {
     this.db = context;
     if (!db.Day.Any())
     {
         db.Day.Add(new Day {
             Booked = true
         });
         db.Day.Add(new Day {
             Booked = false
         });
         db.SaveChanges();
     }
 }
 public FlatTableViewController(OneDayFlatContext context)
 {
     _context = context;
 }
 public AccountController(OneDayFlatContext context)
 {
     db = context;
 }
Пример #4
0
 public HomeController(OneDayFlatContext context)
 {
     _context = context;
 }
Пример #5
0
 public DaysController(OneDayFlatContext context)
 {
     _context = context;
 }