If the binding of the UI5 List to the Odata V4 Entity is working correctly then most things are already handled for you. You just need to ask the model with hasPendingChanges() if something has changed and then execute submitBatch() on the model.
You might take a look at the Odata V4 Tutorial of the UI5 documentation.