Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created September 15, 2019 03:32
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 IntegerMan/fda839013b4d364a27a38377e5591754 to your computer and use it in GitHub Desktop.
Save IntegerMan/fda839013b4d364a27a38377e5591754 to your computer and use it in GitHub Desktop.
public IEnumerable<JobInfo> FindJobsMatchingResume(
ResumeInfo resume,
UserInfo user)
{
try {
ValidateUser(user);
// Create a database connection
// Do a query against the database
// Translate results into simple objects
// Return a list of matching objects
}
catch (SqlException ex) {
// Custom handling goes here
}
catch (AuthenticationException ex) {
// Custom handling goes here
}
catch (InvalidOperationException ex) {
// Custom handling goes here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment