Example #1
0
 public async Task <IEnumerable <Projeto> > Get()
 {
     return(await _projetoRepository.GetAll());
 }
 public IEnumerable <Projeto> GetAll()
 {
     return(_projetoRepository.GetAll());
 }
Example #3
0
 public Task <IEnumerable <Projeto> > ObterTodos()
 {
     return(ProjetoRepository.GetAll());
 }
        public async Task <ActionResult <IEnumerable <ProjetoViewModel> > > GetAll()
        {
            var projetos = await _prjRepo.GetAll();

            return(CustomResponse(_mapper.Map <IEnumerable <ProjetoViewModel> >(projetos)));
        }