public void Create(int columnId) { ContentSection section = ContentValidator.ValidateSection(columnId, ctx); if (errors.HasErrors) { run(Add, columnId); } else { sectionService.Insert(section); echoToParentPart(lang("opok")); } }
public void CreateAuto(int columnId) { ContentSection section = ContentValidator.ValidateSection(columnId, ctx); if (errors.HasErrors) { run(AddAutoThree, columnId); } else { sectionService.Insert(section); // 给参数赋值 SectionSettingController.updateParamValues(section, sectionService, ctx); echoToParentPart(lang("opok")); } }