Multimodel with unique validation of composite key

I have multiple model to insert and update in one go which i have done perfectly.

But how to handle unique validation of composite key ?

My Model is unique on multiple columns.

Below image for my issue :

If i check record 15 and unchecked 16 and i loop trough the records after posting and find unique then it will find the already exist.