public int ws_deleteNode(int NodeID, out string OpStatus) { try { int code = 0; DeviceDataManager DDM = new DeviceDataManager(); code = DDM.deleteNode(NodeID); if (code == 0) { OpStatus = Resources.Messages.m_OpStatusDone; } else { OpStatus = Resources.Messages.m_OpStatusFail; OpStatus += code; } return(1); } catch (Exception err) { OpStatus = Resources.Messages.m_OpStatusFail; OpStatus += err.Message.ToString(); return(0); } }
public int ws_deleteNode(int NodeID, out string OpStatus) { try { int code = 0; DeviceDataManager DDM = new DeviceDataManager(); code = DDM.deleteNode(NodeID); if (code == 0) { OpStatus = Resources.Messages.m_OpStatusDone; } else { OpStatus = Resources.Messages.m_OpStatusFail; OpStatus += code; } return 1; } catch (Exception err) { OpStatus = Resources.Messages.m_OpStatusFail; OpStatus += err.Message.ToString(); return 0; } }