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