public async Task <IList <AlunoDto> > GetAluno() { var alunosRepository = await _alunoRepository.GetAll(); var alunos = _mapper.Map <List <AlunoDto> >(alunosRepository); return(alunos); }
public IEnumerable <Aluno> GetAll( [FromServices] IAlunoRepository repository ) { var user = User.Claims.FirstOrDefault(x => x.Type == "user_id")?.Value; return(repository.GetAll()); }
public IHttpActionResult GetAlunos() { try { return(Ok(_alunoRepository.GetAll())); } catch (Exception e) { return(BadRequest(e.Message)); } }
public IEnumerable <Aluno> ObterAlunos() { return(repo.GetAll()); }
public async Task <IEnumerable <GetAlunoQueryResponse> > Handle(GetAlunoQuery request, CancellationToken cancellationToken) { var results = await _alunoRepository.GetAll(); return(_mapper.Map <IEnumerable <GetAlunoQueryResponse> >(results)); }
public IEnumerable <AlunoViewModel> GetAll() { return(_alunoRepository.GetAll().ProjectTo <AlunoViewModel>(_mapper.ConfigurationProvider)); }
public IQueryable <Aluno> getAll() { return(_alunoRepository.GetAll()); }
public IEnumerable <Aluno> GetAll() { var result = _repository.GetAll(); return(result ?? throw new Exception("Não foram encontrados alunos cadastrados.")); }
public IEnumerable <Aluno> GetAll() { return(_alunoRepository.GetAll()); }
public IActionResult GetList() { var list = _context.GetAll(); return(Ok(list)); }
public IList <AlunoDTO> GetAll() { return(_alunoRepository.GetAll() .Select(aluno => Mapper.Map <AlunoDTO>(aluno)) .ToList()); }