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); }
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); }