Created
October 22, 2020 02:26
-
-
Save TiedtTech/c4cd22a6b7c7a7638d1c0405ee48cf33 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
public ActionResult Cadastro(int? id) | |
{ | |
if (id != null) | |
{ | |
using (var db = new Conexao()) | |
{ | |
var registro = db.Pessoa.Find(id); | |
return View(registro); | |
} | |
} | |
return View(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment