예제 #1
0
 public Boolean insertRecommendedJob(Guid JobId, Guid RecruiteeId, double PredictedRankingValue)
 {
     RecommendedJob obj = RecommendedJob.createRecommendedJob(JobId, RecruiteeId, (decimal)PredictedRankingValue);
     RecommendedJobManager mgr = new RecommendedJobManager();
     return mgr.insertRecommendedJob(obj);
 }
예제 #2
0
 public bool insertRecommenderJob(DataResult avgs)
 {
     try
     {
         bool flag = false;
         RecommendedJobManager mgr = new RecommendedJobManager();
         for (int n = 0; n < avgs.Number_top_jobs; n++)
         {
             RecommendedJob job = new RecommendedJob();
             job.RecruiteeId = new Guid(avgs.User_profile.UserID);
             job.JobId = new Guid(avgs.TopJobNames[n]);
             job.PredictedRankingValue = (decimal)avgs.Mylist.ElementAt(n).PredRecJob;
             flag = mgr.insertRecommendedJob(job);
         }
         return flag;
     }
     catch (Exception ex)
     {
         return false;
     }
 }