public ScoredOfferViewModel MapToScoredOfferViewModel(ScoredOfferModel offerModel, DateTime modificationDate) { return new ScoredOfferViewModel(offerModel, modificationDate); }
public ScoredOfferViewModel(ScoredOfferModel offer, DateTime modificationDate) { Offer = offer; ModificationDate = modificationDate.ToLocalTime(); TopSkills = CalculateTopSkills(offer.Skills); }
public ScoredOfferModel MapToScoredOfferModel(JobOffer offer, double score) { var skills = MapSkillsToSkillModels(offer.Skills); var scoredOfferModel = new ScoredOfferModel(offer.Id, offer.Name, offer.Salary, score, offer.Description, skills); return scoredOfferModel; }
public ScoredOfferViewModel() { Offer = new ScoredOfferModel(); TopSkills = new List<SkillModel>(); }