Skip to content

Instantly share code, notes, and snippets.

@fatosmorina
Last active May 2, 2018 04:37
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 fatosmorina/fa786f063ff7047b0dbf04df7f2e47a3 to your computer and use it in GitHub Desktop.
Save fatosmorina/fa786f063ff7047b0dbf04df7f2e47a3 to your computer and use it in GitHub Desktop.
public Person GetPersonById(integer personId) {
var person = DBInstance.People.Find(personId);
if (person == null)
return null;
return person;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment