public void LoadCandidate() { using (var service = new CandidatesServiceClient()) { try { this.ViewModel.Candidate = service.GetCandidateByRecruitmentStageId(this.CurrentId); } 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) { } } }