public List <DeviceStatus> SelfMonitoring(string clientCode) { try { AddLog("Self Monitoring", "Monitoring Performances & Peripherals", (string.IsNullOrEmpty(clientCode)? string.Empty : "Client Code: " + clientCode)); monitoringService = new MonitoringService(); return(monitoringService.SelfMonitoring(clientCode)); } catch (Exception ex) { AddLog("Self Monitoring", "SelfMonitoring Failed", ex.Message + (ex.InnerException == null ? string.Empty : " " + ex.InnerException.Message)); throw new RMSAppException(this, "0500", "SelfMonitoring failed. " + ex.Message, ex, true); } }
public Result Monitoring(string clientCode) { try { AddLog("Monitoring", "Monitoring Performances & Peripherals", "Client Code: " + clientCode); monitoringService = new MonitoringService(); monitoringService.Command(clientCode); return(new Result { IsSuccess = true }); } catch (Exception ex) { AddLog("Monitoring", "Monitoring Failed", ex.Message + (ex.InnerException == null? string.Empty : " " + ex.InnerException.Message)); throw new RMSAppException(this, "0500", "Monitoring failed. " + ex.Message, ex, true); } }