the UpdatePayOrderAsync Method:
public async Task UpdatePayOrderAsync( UpdatePayOrderInput input )
{
if (!input.Id.HasValue)
return;
var payOrder = await _payorderRepository.GetAsync( input.Id.Value );
if (input.ContainerId.HasValue)
{
payOrder.ContainerId = input.ContainerId;
}
if (input.PayPlanId.HasValue)
{
payOrder.PayPlanId = input.PayPlanId;
}
if (input.OrderPayPlanType.HasValue)
{
payOrder.OrderPayPlanType = input.OrderPayPlanType;
}
if (!input.OrderPayId.IsNullOrEmpty())
{
payOrder.OrderPayId = input.OrderPayId;
}
if (!input.TransactionId.IsNullOrEmpty())
{
payOrder.TransactionId = input.TransactionId;
}
if (input.IsVerify.HasValue)
{
payOrder.IsVerify = input.IsVerify.Value;
}
await _payorderRepository.UpdateAsync( payOrder );
//await CurrentUnitOfWork.SaveChangesAsync();
}
When I execute UpdatePayOrderAsync for the second time, I get an exception prompt.