public ActionResult Edit(Guid id) { var menu = dataDictionaryService.Get(id); if (menu == null || menu.IsDelete == true) { throw new NopException("数据字典不存在"); } var model = menu.ToModel(); return(View(model)); }