示例#1
0
        public ActionResult GetAllActionInfos()
        {
            int pageSize  = Int32.Parse(Request["rows"] ?? "10");
            int pageIndex = Int32.Parse(Request["page"] ?? "1");
            int total     = 0;
            var temp      = ActionInfoService.GetTInfoPage(pageSize, pageIndex, out total,
                                                           u => u.DelFlag == DelFlagNormal, u => u.Id, true);
            var tempData =
                temp.Select(
                    a =>
                    new
            {
                a.Id,
                a.IsMenu,
                a.Url,
                a.Remark,
                a.Sort,
                a.Subtime,
                a.ModfiedOn,
                a.HttpMethod,
                a.MenuIcon,
                a.ActionName
            });

            var data = new { total = total, rows = tempData.ToList() };

            return(Json(data, JsonRequestBehavior.AllowGet));
        }