コード例 #1
0
        // GET: Admin
        public ActionResult List(int pageIndex = 0, int pageSize = 20)
        {
            var result = new ResultList();

            result.pageIndex = pageIndex;
            result.pageSize  = pageSize;
            Dictionary <string, object> paramList = new Dictionary <string, object>();

            foreach (var q in Request.QueryString.AllKeys)
            {
                if (q != "pageIndex" && q != "pageSize" && !string.IsNullOrEmpty(Request.QueryString[q]))
                {
                    paramList.Add(q, Request.QueryString[q]);
                }
            }
            StructureHelper.Query(tableSlug, paramList, result);
            ViewData.Model    = result;
            ViewBag.condition = paramList;
            return(View());//TODO html editor, field mapping, validation for add and update
        }