Created
September 15, 2019 03:33
-
-
Save IntegerMan/edd87f001b83b9ba15d70c837dd5af36 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 { | |
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