コード例 #1
0
        public ActionResult ListItems()
        {
            var listactiveRoleItem = _dnActiveRoleDa.GetListSimpleByRequest(Request).OrderBy(m => m.Ord);
            var model = new ModelActiveRoleItem
            {
                ListItem = listactiveRoleItem,
                PageHtml = _dnActiveRoleDa.GridHtmlPage
            };

            return(View(model));
        }
コード例 #2
0
        public ActionResult GetListSimpleByRequest()
        {
            var obj = Request["key"] != Keyapi ? new List <ActiveRoleItem>() : _dl.GetListSimpleByRequest(Request);

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