public List <Funcao> GetAll() { try { return(dbFuncao.GetAll().ToList()); } catch (Exception ex) { throw new Exception($"Erro ao pesquisar Funcaoes: {ex.Message}."); } }
public IList <Funcao> GetAll() { return(_repository.GetAll()); }
public IEnumerable <FuncaoViewModel> ObterTodos() { return(_funcaoRepository.GetAll().ProjectTo <FuncaoViewModel>(_mapper.ConfigurationProvider)); }
public IEnumerable <Funcao> GetAll() { return(_repo.GetAll()); }