After you create or edit a record, save your changes to the database by following these steps:
This method returns any validation errors so that you can fix them before you attempt to save your changes.
This method writes the changes to the database, ends the current action, and checks in the record so that it cannot be edited.