public IEnumerable <NotaFiscalViewModel> Get()
 {
     return(Mapper.Map <IEnumerable <NotaFiscal>, IEnumerable <NotaFiscalViewModel> >(_notaFiscalApp.GetAll()));
 }
示例#2
0
 public IEnumerable <NotaFiscalViewModel> GetAll()
 {
     try
     {
         return(Mapper.Map <IEnumerable <NotaFiscal>, IEnumerable <NotaFiscalViewModel> >(_notaFiscalApp.GetAll()));
     }
     catch
     {
         return(null);
     }
 }