Exemple #1
0
        public IActionResult Search(JDataTableSearch model, string gameName, string selectId)
        {
            System.Threading.Thread.Sleep(1000);
            int       count       = 10001;
            int       PageCount   = count % model.length == 0 ? count / model.length : count / model.length + 1;
            int       CurrentPage = model.start % model.length == 0 ? model.start / model.length : model.start / model.length + 1;
            int       length      = model.length * (CurrentPage + 1) > count ? count - model.length * (CurrentPage) : model.length;
            List <aa> list        = new List <aa>();

            for (int i = 0; i < length; i++)
            {
                var temp = model.start + i + 1;
                list.Add(new aa {
                    id = temp, GamePopularity = 1, IsHotPush = 1, SmallIconUrl = "test" + temp, username = "******" + temp
                });
            }
            JDatatableResult jDatatable = new JDatatableResult()
            {
                data            = list,
                recordsTotal    = count,
                recordsFiltered = count
            };

            return(new JsonResult(jDatatable));
        }
Exemple #2
0
        public IActionResult Search(JDataTableSearch model, string AppId, string AppName)
        {
            IList <AppInfo> res = LogBusiness.GetAppInfoList();

            JDatatableResult jDatatable = new JDatatableResult()
            {
                data            = res,
                recordsTotal    = res.Count,
                recordsFiltered = res.Count
            };

            return(new JsonResult(jDatatable));
        }
        public IActionResult Search(JDataTableSearch model, string appId, string logTypeId)
        {
            IList <LogType> res = LogBusiness.GetLogTypeList(appId, logTypeId);

            JDatatableResult jDatatable = new JDatatableResult()
            {
                data            = res,
                recordsTotal    = res.Count,
                recordsFiltered = res.Count
            };

            return(new JsonResult(jDatatable));
        }