Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 public List <Natureza> Get()
 {
     return(rep.GetAll());
 }