Esempio n. 1
0
        public ActionResult GetModel(string id)
        {
            var result = new ResultAdaptDto();
            var data   = _dicApp.GetDicById(id.ToInt64());

            result.data.Add("model", data);
            return(Json(result));
        }
Esempio n. 2
0
        /// <summary>
        /// 获取单个数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult GetDicById(string id)
        {
            var result = new ResultAdaptDto();
            var data   = _dicApp.GetDicById(id.ToInt64());

            result.data.Add("model", data);
            //result.Data = _dicApp.GetDicById(id);
            ////result.statusCodeCode=JuiJsonEnum.Ok;
            return(Content(result.ToJson()));
        }