Beispiel #1
0
 public void RecordState()
 {
     foreach (var device in _deviceProvider.GetAll()
              .Where(x => !x.Disabled)
              .Select(x => x.DeviceId))
     {
         _stateProvider.RecordDeviceState(device);
     }
 }
Beispiel #2
0
        public IHttpActionResult ListDevices()
        {
            var deviceList = _provider.GetAll();

            return(Ok(deviceList));
        }