public ReturnResult <Monitor> GetAllMonitorSearched(BaseCondition <Monitor> condition) { MonitorDAL monitorDAL = new MonitorDAL(); var result = monitorDAL.GetAllMonitorSearched(condition); return(result); }
public static bool GetMonitorSignal() { bool signal = true; var dal = new MonitorDAL(); var monitor = dal.GetMonitor(); if (monitor != null && monitor.MonitorV == 2) { signal = false; } return(signal); }
public void ProcessRequest(HttpContext context) { string debug = context.Request.QueryString["debug"]; if (!string.IsNullOrWhiteSpace(debug)) { var dal = new MonitorDAL(); if (string.Equals(debug, "m=1", StringComparison.OrdinalIgnoreCase)) { dal.SaveMonitor(1); } else if (string.Equals(debug, "m=2", StringComparison.OrdinalIgnoreCase)) { dal.SaveMonitor(2); } } else { context.Response.Write("Monitor is working successfully!"); } }