예제 #1
0
        public void UpdateGridData(CandidateModel model)
        {
            var user     = this.usersRepo.FindOne(new ByIdSpecify <User>(model.Id));
            var jobAppId = user.JobApplications.First(x => x.Job.ProjectId == this.CurrentProjectId).Id;
            var jobApp   = this.jobAppRepo.FindOne(new ByIdSpecify <JobApplication>(jobAppId));

            jobApp.HasInterviewed   = model.HasInterviewed;
            jobApp.InterviewResult  = model.InterviewResult;
            jobApp.InterviewComment = model.InterviewComment;
            this.jobAppRepo.SaveOrUpdate(jobApp);
        }
예제 #2
0
 private void AfterFunction(User user, CandidateModel candidateModel)
 {
 }
 public void UpdateGridData(CandidateModel model)
 {
     var user = this.usersRepo.FindOne(new ByIdSpecify<User>(model.Id));
     var jobAppId = user.JobApplications.First(x => x.Job.ProjectId == this.CurrentProjectId).Id;
     var jobApp = this.jobAppRepo.FindOne(new ByIdSpecify<JobApplication>(jobAppId));
     jobApp.HasInterviewed = model.HasInterviewed;
     jobApp.InterviewResult = model.InterviewResult;
     jobApp.InterviewComment = model.InterviewComment;
     this.jobAppRepo.SaveOrUpdate(jobApp);
 }