Created
July 15, 2022 03:38
-
-
Save lexuanquynh/dc23c142b7e8b6656830724658d9925c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let repository = PetRepository() | |
repository.save(entity: dog, update: false) { result in | |
switch result { | |
case .success: | |
// Handle success here | |
print("Handle success here") | |
case .failure: | |
print("Handle failed here") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment