public void LoadCandidate() { using (var service = new CandidatesServiceClient()) { try { this.ViewModel.Candidate = service.GetCandidateBySkillEvaluationId(this.CurrentId); } catch (Exception e) { } } }
public override void Load() { using (var service = new CandidatesServiceClient()) { try { this.ViewModel.Candidate = service.GetCandidateBySkillEvaluationId(this.CurrentId); this.ViewModel.SkillsEvaluation = this.ViewModel.Candidate.Evaluation.SkillsEvaluation.Where(x => x.Id == this.CurrentId).First(); } catch (Exception e) { } } }