'Multiple Post from a SAVE button handling in a Angular application

I have an angular application with, kind of master-details approach. 1 master and 5 details tabs. So while saving how can I rollback all inserted records if the error happen at 4th details tab Post method. How do we handle that, is there any approach to rollback records ? We don't do hard delete but just flag update only and the seed keys. So delete will be a last approach. Is there any design pattern for this kind of scenario ?

Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source