Skip to content

Instantly share code, notes, and snippets.

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