public IEnumerable <CandidaturaPorVagaViewModel> GetByVagaId(int vagaId) { try { return(_mapper.Map <List <CandidaturaPorVagaViewModel> >(_candidaturaRepository.listarPorIdVaga(vagaId))); } catch (Exception ex) { throw new Exception(ex.Message); } }
public IEnumerable <CandidaturaPorVagaViewModel> GetByVagaId(int vagaId) { try { return(_mapper.Map <List <CandidaturaPorVagaViewModel> >(_candidaturaRepository.listarPorIdVaga(vagaId))); } catch (Exception ex) { throw new Exception(ex.Message); } }