public ScoredCandidateViewModel(ScoredCandidateModel candidate, DateTime modificationDate, string candidateId) { Candidate = candidate; CandidateId = candidateId; ModificationDate = modificationDate; TopSkills = CalculateTopSkills(candidate.Skills); }
public ScoredCandidateViewModel MapToScoredCandidateViewModel(ScoredCandidateModel scoredCandidateModel, DateTime modificationDate, string candidateId) { return new ScoredCandidateViewModel(scoredCandidateModel, modificationDate, candidateId); }
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>(); }