Esempio n. 1
0
        private string getDebugInfo(HttpContext context)
        {
            Json      jsonResult = new Json();
            string    macNum     = context.Request["macNum"];
            DataTable result     = ms.getDebugInfo(macNum);

            if (result == null || result.Rows.Count == 0)
            {
                jsonResult.Success = false;
            }
            else
            {
                jsonResult.Success = true;
                jsonResult.Result  = result;
            }
            string strJson = JsonConvert.SerializeObject(jsonResult);

            return(strJson);
        }