コード例 #1
0
        public ActionResult ListItems()
        {
            var obj = Request["key"] != Keyapi
                ? new ModelDistrictItem()
                : new ModelDistrictItem {
                ListItem = _da.GetListbyRequest(Request), PageHtml = _da.GridHtmlPage
            };

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public ActionResult ListItems()
        {
            var model = new ModelDistrictItem
            {
                ListItem = _districtDa.GetListbyRequest(Request),
                PageHtml = _districtDa.GridHtmlPage
            };

            ViewData.Model = model;
            return(View());
        }