Last active
March 31, 2020 21:07
-
-
Save PedroFarina/928c2f425a76a5324cb131268e47db52 to your computer and use it in GitHub Desktop.
Salvando um aluno na database pública
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
dbPublica.save(aluno) { (record, erro) in | |
//Este trecho do código rodará assincronamente após receber a resposta do servidor | |
if let erro = erro { | |
print("Não foi possível salvar") | |
} else { | |
print("O aluno foi salvo") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment