public ScoredCandidateViewModel(ScoredCandidateModel candidate, DateTime modificationDate, string candidateId)
 {
     Candidate = candidate;
     CandidateId = candidateId;
     ModificationDate = modificationDate;
     TopSkills = CalculateTopSkills(candidate.Skills);
 }
Пример #2
0
 public ScoredCandidateViewModel MapToScoredCandidateViewModel(ScoredCandidateModel scoredCandidateModel, DateTime modificationDate, string candidateId)
 {
     return new ScoredCandidateViewModel(scoredCandidateModel, modificationDate, candidateId);
 }
Пример #3
0
 public ScoredCandidateModel MapToScoredCandidateModel(CandidateUser candidate, double score)
 {
     var skillModels = MapSkillsToSkillModels(candidate.Skills);
     var scoredCandidateModel = new ScoredCandidateModel(candidate.Name, candidate.Salary, candidate.ExperienceDescription, candidate.ExperienceInYears, score, skillModels);
     return scoredCandidateModel;
 }
 public ScoredCandidateViewModel()
 {
     Candidate = new ScoredCandidateModel();
     TopSkills = new List<SkillModel>();
 }