예제 #1
0
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <JsonResponse> Create(RoleMenuRequestDto input)
        {
            input.InitCreateRequest();
            var resJson = await _applicationEnginee.TryTransactionAsync(async() =>
            {
                await _roleMenuAppService.CreateAsync(input);
            });

            return(resJson);
        }
예제 #2
0
 /// <summary>
 /// 保存角色菜单权限
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task <JsonResponse> SaveRoleMenu(RoleMenuRequestDto input)
 {
     input.InitCreateRequest();
     input.InitModifyRequest();
     return(await _menuDomainService.SaveRoleMenu(input));
 }