コード例 #1
0
 public ScoredOfferViewModel MapToScoredOfferViewModel(ScoredOfferModel offerModel, DateTime modificationDate)
 {
     return new ScoredOfferViewModel(offerModel, modificationDate);
 }
コード例 #2
0
 public ScoredOfferViewModel(ScoredOfferModel offer, DateTime modificationDate)
 {
     Offer = offer;
     ModificationDate = modificationDate.ToLocalTime();
     TopSkills = CalculateTopSkills(offer.Skills);
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public ScoredOfferViewModel()
 {
     Offer = new ScoredOfferModel();
     TopSkills = new List<SkillModel>();
 }