public IHttpActionResult SetLightingLevel(LightLevelEntity lightLevel)
        {
            LightSceneEntity lightScenetemp = new LightSceneEntity();
            var deviceLightLevel            = BackNetWriteAction.SetConfLightLevel(lightLevel);
            var lightScene   = BackNetReadAction.GetConfLightingScene(lightLevel.DeviceID);
            var deviceDetail = new DeviceDetailEnity
            {
                DeviceID        = lightScene.DeviceID,
                LightScene      = lightScene.LightScene,
                LightSceneValue = lightScene.Value,
                LightLevel      = deviceLightLevel.LightLevel,
                //LightState = lightState.LightState
            };

            return(Ok(deviceDetail));
        }
        public IHttpActionResult SetLightingScene(LightSceneEntity lightscene)
        {
            LightSceneEntity lightScenetemp = new LightSceneEntity();

            lightscene.Value = EnumConstants.GetEnumValueFromDescription <LightSceneEnum>(lightscene.LightScene).ToString();
            var lightScene   = BackNetWriteAction.SetConfLightScene(lightscene);
            var lightLevel   = BackNetReadAction.GetConfLightLevel(lightscene.DeviceID);
            var deviceDetail = new DeviceDetailEnity
            {
                DeviceID        = lightScene.DeviceID,
                LightScene      = lightScene.LightScene,
                LightSceneValue = lightScene.Value,
                LightLevel      = lightLevel.LightLevel,
                //LightState = lightState.LightState
            };

            return(Ok(deviceDetail));
        }