示例#1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "application/json";
            List <ModelSproductCount> list = DalAnalyze.SproductTOP();
            string json = JsonConvert.SerializeObject(list);

            context.Response.Write(json);
        }
示例#2
0
 /// <summary>
 /// 查询销量(计数)
 /// </summary>
 /// <returns></returns>
 public static List <ModelSproductCount> SproductTOP()
 {
     return(DalAnalyze.SproductTOP());
 }