public static ReturnKnowType ScriptHandler(STATIONNAME StationDestination, ScriptStructure[] ThisScriptList) { StationHandler ThisSite = KeeperData.FirstOrDefault(Item => Item.StationName == StationDestination); if (ThisSite != null) { Boolean AckState = false; if (StationDestination == STATIONNAME.ASTROSERVER) { AckState = true; } else { return(ThisSite.SendScriptToStation(ThisScriptList)); } return(ReturnKnowType.DefineReturn(ReturnStatus.SUCESSFUL, null, AckState)); } return(ReturnKnowType.DefineReturn(ReturnStatus.FAILED, "(#TT003) Failed to relay set command to station.", false)); }