public void ProcessRequest(HttpContext context) { var on_offs = LogOnOffManager.GetALLLogOnOff(); context.Response.ContentType = "text/plain"; context.Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(on_offs)); }
public dynamic GetLogOnOffs() { var on_offs = LogOnOffManager.GetALLLogOnOff(); return(Newtonsoft.Json.JsonConvert.SerializeObject(on_offs)); }