public IEnumerable <Natureza> GetNaturezas() { try { var naturezas = _nRepository.GetAll(); return(naturezas); } catch (Exception e) { throw new ExtratoException("Não foi possível buscar as naturezas.", e); } }
public List <Natureza> Get() { return(rep.GetAll()); }