Skip to content

Instantly share code, notes, and snippets.

@TiedtTech
Created October 22, 2020 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TiedtTech/c4cd22a6b7c7a7638d1c0405ee48cf33 to your computer and use it in GitHub Desktop.
Save TiedtTech/c4cd22a6b7c7a7638d1c0405ee48cf33 to your computer and use it in GitHub Desktop.
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