public ResultObj SetSystemSettingPara(CmsSystemSetting obj) { ResultObj resultObj = new ResultObj(); try { StationControlService.SetSystemSettingParaService(obj); } catch (Exception e) { resultObj.IsSuccess = false; resultObj.ErrMsg = e.Message; } return(resultObj); }
public ResultObj DeviceControl(ControlModel model) { ResultObj resultObj = new ResultObj(); try { var result = StationControlService.DeviceControlService(model); resultObj.IsSuccess = result.Result.Equals("1"); } catch (Exception e) { resultObj.IsSuccess = false; resultObj.ErrMsg = e.Message; } return(resultObj); }
public IActionResult GetStationConfigData() { string jsonStrData = StationControlService.GetStationConfigJsonData(); return(new OkObjectResult(jsonStrData)); }