Exemplo n.º 1
0
        public JsonResult GetActive(int type = 0, int tops = 9)
        {
            var list = WebSetBusiness.GetActiveList(type, tops);

            JsonDictionary.Add("Items", list);
            return(new JsonResult
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Exemplo n.º 2
0
        public JsonResult GetActiveList(string keywords, int pageIndex, int pageSize, string btime = "",
                                        string etime = "", int type = -1)
        {
            int totalCount = 0, pageCount = 0;

            JsonDictionary.Add("items",
                               WebSetBusiness.GetActiveList(keywords, pageIndex, pageSize, ref totalCount, ref pageCount, btime, etime,
                                                            type));
            JsonDictionary.Add("TotalCount", totalCount);
            JsonDictionary.Add("PageCount", pageCount);
            return(new JsonResult
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }