public static bool deleteMac(string mac) { bool flg = true; try { if (StaticClass.ServerConet) { try { var request = new NetworkModuleDeleteByMacRequest() { Mac = mac }; var response = jc_MacService.DeleteNetworkModule(request); flg = true; } catch (Exception ex) { XtraMessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); flg = false; } } } catch { OprFuction.SetServerConct(); } return(flg); }
public BasicResponse DeleteNetworkModule(Sys.Safety.Request.NetworkModule.NetworkModuleDeleteByMacRequest NetworkModuleRequest) { return(_NetworkModuleService.DeleteNetworkModule(NetworkModuleRequest)); }