public bool insertRecommenderJob(DataResult avgs)
        {
            bool flag = false;
            ElasticService.ServiceWCFClient ws = new ElasticService.ServiceWCFClient();
            for (int n=0; n < avgs.Number_top_jobs; n++)
            {
                ElasticService.RecommendedJobDto job = new ElasticService.RecommendedJobDto();
                job.RecruiteeId = new Guid(avgs.User_profile.UserID);
                job.JobId = new Guid(avgs.TopJobNames[n]);
                job.PredictedRankingValue = avgs.Mylist.ElementAt(n).PredRecJob;
                flag = ws.insertRecommendedJob(job);

            }
            return flag;
        }
Beispiel #2
0
        public bool insertRecommenderJob(DataResult avgs)
        {
            bool flag = false;

            ElasticService.ServiceWCFClient ws = new ElasticService.ServiceWCFClient();
            for (int n = 0; n < avgs.Number_top_jobs; n++)
            {
                ElasticService.RecommendedJobDto job = new ElasticService.RecommendedJobDto();
                job.RecruiteeId           = new Guid(avgs.User_profile.UserID);
                job.JobId                 = new Guid(avgs.TopJobNames[n]);
                job.PredictedRankingValue = avgs.Mylist.ElementAt(n).PredRecJob;
                flag = ws.insertRecommendedJob(job);
            }
            return(flag);
        }