Skip to content

Instantly share code, notes, and snippets.

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