示例#1
0
        /// <summary>
        /// 删除节点
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public async Task <JsonResult> DeleteNode(int Id)
        {
            try
            {
                await menuAppService.DeleteMenu(Id);

                return(Json(new AjaxResponse {
                    Success = true, Result = ""
                }));
            }
            catch (Exception ex)
            {
                Logger.Error(ex.Message);
                return(Json(new AjaxResponse {
                    Success = false, Result = ex.Message
                }));
            }
        }