Example #1
0
        public IActionResult Modify(string id)
        {
            var CodeModel = _sysCodeService.GetByIDAsync(id).Result.data;

            if (string.IsNullOrEmpty(CodeModel.ID))
            {//如果传递的类型ID查询不出数据,则父级ID则为类型ID
                CodeModel.CodeTypeId = id;
            }

            return(View(CodeModel));
        }