public override void Add() { using (var service = new CandidatesServiceClient()) { try { this.CurrentId = service.AddSoftSkill(this.ViewModel.Candidate, this.ViewModel.SoftSkillsEvaluation, this.ViewModel.SoftSkillsEvaluation.SoftSkill.Name); } catch (Exception e) { } } }
public override void Load() { using (var service = new CandidatesServiceClient()) { try { this.ViewModel.Candidate = service.GetCandidateById(this.CurrentId); } catch (Exception e) { } } }
public void LoadCandidate() { using (var service = new CandidatesServiceClient()) { try { this.ViewModel.Candidate = service.GetCandidateByRecruitmentStageId(this.CurrentId); } catch (Exception e) { } } }
public void LoadCandidate() { using (var service = new CandidatesServiceClient()) { try { this.ViewModel.Candidate = service.GetCandidateBySkillEvaluationId(this.CurrentId); } catch (Exception e) { } } }
public override void Save() { using (var service = new CandidatesServiceClient()) { try { this.ViewModel.Candidate.Document = null; service.Save(this.ViewModel.Candidate); } catch (Exception e) { } } }
public override void Save() { using (var service = new CandidatesServiceClient()) { try { this.ViewModel.RecruitmentStage.Candidate = null; this.CurrentId = service.SaveRecriutmentStage(this.ViewModel.RecruitmentStage); } catch (Exception e) { } } }
public override void Save() { using (var service = new CandidatesServiceClient()) { try { this.ViewModel.SoftSkillsEvaluation.Evaluation = null; service.SaveSoftSkill(this.ViewModel.SoftSkillsEvaluation); } catch (Exception e) { } } }
public override void Load() { using (var service = new CandidatesServiceClient()) { try { this.ViewModel.Candidate = service.GetCandidateByRecruitmentStageId(this.CurrentId); this.ViewModel.RecruitmentStage = this.ViewModel.Candidate.RecruitmentStage.Where(x => x.Id == this.CurrentId).First(); } catch (Exception e) { } } }
public override void Load() { using (var service = new CandidatesServiceClient()) { try { this.ViewModel.Candidate = service.GetCandidateBySoftSkillEvaluationId(this.CurrentId); this.ViewModel.SoftSkillsEvaluation = this.ViewModel.Candidate.Evaluation.SoftSkillsEvaluation.Where(x => x.Id == this.CurrentId).First(); } catch (Exception e) { } } }