Exemple #1
0
        /// <summary>
        /// 批量新增
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <JsonResponse> BatchCreate(EmployeeBatchRequestDto input)
        {
            foreach (var employeeRequestDto in input.EmployeeRequestList)
            {
                employeeRequestDto.InitCreateRequest(input.Payload);
            }
            var resJson = await _applicationEnginee.TryTransactionAsync(async() =>
            {
                await _employeeAppService.BatchCreateAsync(input.EmployeeRequestList);
            });

            return(resJson);
        }