示例#1
0
        public List <SensorModel> GetAllDevices()
        {
            var devices = _devicessRepository.GetAllActiveDevices();

            return(devices.Select(s => new SensorModel()
            {
                SensorId = s.DeviceId, SensorDescription = s.Description, SensorDescritionExtra = s.ExtraDescription, SensorName = s.DeviceName
            }).ToList());
        }