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;
 }
Example #4
0
 public HomeController(OneDayFlatContext context)
 {
     _context = context;
 }
Example #5
0
 public DaysController(OneDayFlatContext context)
 {
     _context = context;
 }