コード例 #1
0
        public ActionResult AjaxView()
        {
            var customerType = _dnNewsSscda.GetById(ArrId.FirstOrDefault());

            ViewData.Model = customerType;
            return(View());
        }
コード例 #2
0
        public ActionResult GetById(string key, int id)
        {
            var obj = key != Keyapi ? new DN_NewsSSC() : _dl.GetById(id);;

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