Пример #1
0
        private void GetData(string fb_id)
        {
            if (rating_time == "")
            {
                rating_time = DateTime.Now.AddDays(-DateTime.Now.Day + 1) + "," + DateTime.Now;
            }

            BLL.BLLPowerTrends gz = new BLL.BLLPowerTrends();
            list = gz.GetChartData(fb_id, rating_time);
            object obj = new
            {
                title = fb_id,
                list = list
            };
            string result = JsonConvert.SerializeObject(obj);
            Response.Write(result);
            Response.End();
        }
Пример #2
0
        private void GetData(string fb_id)
        {
            if (rating_time == "")
            {
                rating_time = DateTime.Now.AddDays(-DateTime.Now.Day + 1) + "," + DateTime.Now;
            }

            BLL.BLLPowerTrends gz = new BLL.BLLPowerTrends();
            list = gz.GetChartData(fb_id, rating_time);
            object obj = new
            {
                title = fb_id,
                list  = list
            };
            string result = JsonConvert.SerializeObject(obj);

            Response.Write(result);
            Response.End();
        }