/// <summary> /// 修改 /// </summary> /// <param name="orderInfoRequestDto"></param> /// <returns></returns> public async Task <JsonResponse> ModifyAsync(OrderInfoRequestDto orderInfoRequestDto) { var resJson = await TryTransactionAsync(async() => { var orderInfo = _mapper.Map <OrderInfoRequestDto, OrderInfo>(orderInfoRequestDto); await DoValidationAsync(orderInfo, ValidatorTypeConstants.Modify); await _orderRespository.UpdateAsync(orderInfo); }); return(resJson); }