Created
September 15, 2019 03:32
-
-
Save IntegerMan/fda839013b4d364a27a38377e5591754 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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