/// <summary> /// 保存功能项信息 /// </summary> /// <param name="input">功能项信息</param> /// <returns></returns> public async Task <OperateStatus> SaveMenuButton(SystemMenuButtonSaveInput input) { SystemMenuButton button = input.MapTo <SystemMenuButton>(); if (button.MenuButtonId.IsEmptyGuid()) { button.MenuButtonId = CombUtil.NewComb(); return(await InsertAsync(button)); } return(await UpdateAsync(button)); }
public async Task <JsonResult> SaveMenuButton(SystemMenuButtonSaveInput function) { return(Json(await _menuButtonLogic.SaveMenuButton(function))); }