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

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public ActionResult ListItems()
        {
            var model = new ModelMenuGroupsItem
            {
                ListItem = _menuGroupsDa.GetListSimpleByRequest(Request, Utility.AgencyId),
                PageHtml = _menuGroupsDa.GridHtmlPage
            };

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