Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created September 15, 2019 03:33
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/edd87f001b83b9ba15d70c837dd5af36 to your computer and use it in GitHub Desktop.
Save IntegerMan/edd87f001b83b9ba15d70c837dd5af36 to your computer and use it in GitHub Desktop.
public IEnumerable<JobInfo> FindJobsMatchingResume(
ResumeInfo resume,
UserInfo user)
{
try {
UserRepository.Validate(user);
var analyzer = new ResumeAnalyzer();
var keywords = analyzer.Analyze(resume);
return JobsRepository.FindJobsMatching(keywords, resume.YearsExperience);
}
catch (ResumeAnalyzerException ex) {
// Custom handling goes here
}
catch (AuthenticationException ex) {
// Custom handling goes here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment