示例#1
0
        /// <summary>
        /// 批量新增
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <JsonResponse> BatchCreate(MenuBatchRequestDto input)
        {
            foreach (var menuRequestDto in input.MenuRequestList)
            {
                menuRequestDto.InitCreateRequest(input.Payload);
            }
            var resJson = await _applicationEnginee.TryTransactionAsync(async() =>
            {
                await _menuAppService.BatchCreateAsync(input.MenuRequestList);
            });

            return(resJson);
        }