コード例 #1
0
        public ActionResult ListItems()
        {
            var model = new ModelDNNewsSSCItem
            {
                ListItem = _dnNewsSscda.GetListSimpleByRequest(Request),
                PageHtml = _dnNewsSscda.GridHtmlPage
            };

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

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