public IEnumerable <RecrutamentoViewModel> ObterProcessosRecrutamento() { _recrutamentoAppService = new RecrutamentoAppService(); var retorno = _recrutamentoAppService.ObterTodosRecrutamentos(); return(retorno); }
public IEnumerable <PessoaRecrutamentoViewModel> ObterCurriculosAprovados() { _recrutamentoAppService = new RecrutamentoAppService(); _pessoaCurriculoAppService = new PessoaCurriculoAppService(); var retorno = new List <PessoaRecrutamentoViewModel>(); var todosRecrutamentos = _recrutamentoAppService.ObterTodosRecrutamentos(); foreach (var i in todosRecrutamentos) { var curriculo = _pessoaCurriculoAppService.ObterCurriculoPorIdProcessoDoRecrutamento(i.IdProcesso); if (curriculo.Recrutamento.Aprovado) { retorno.Add(curriculo); } } return(retorno); }