public void ProcessRequest(HttpContext context) { context.Response.ContentType = "application/json"; List <ModelSproductCount> list = DalAnalyze.SproductTOP(); string json = JsonConvert.SerializeObject(list); context.Response.Write(json); }
/// <summary> /// 查询销量(计数) /// </summary> /// <returns></returns> public static List <ModelSproductCount> SproductTOP() { return(DalAnalyze.SproductTOP()); }