public ContentResult IconDelete(int id) { //Result<object> result = new Result<object>(); //todo:有一个先决条件:如果删除的是一级菜单,那么它下面必须没有子节点才可以删除 if (!iconService.Delete(id)) { return(Content(AjaxMsgHelper.AjaxMsg(CodeType.Error, "删除失败"))); } return(Content(AjaxMsgHelper.AjaxMsg())); }