Beispiel #1
0
        public TempsController(BrewsContext context)
        {
            _context = context;


            if (!_context.Temperatures.Any())
            {
                // for early testing
                _context.Temperatures.Add(new TemperatureData {
                    Temperature = 69.69m
                });
                _context.SaveChanges();
            }
        }
Beispiel #2
0
 public BrewsController(BrewsContext context)
 {
     _context = context;
 }
Beispiel #3
0
 public ProfilesController(BrewsContext context)
 {
     _context = context;
 }
Beispiel #4
0
 public DevicesController(BrewsContext context)
 {
     _context = context;
 }