public void DeleteNotaFiscal(NotaFiscal notaFiscal) { try { NotaFiscalDAO notafiscaldao = new NotafiscalDAOImpl(); notafiscaldao.Delete(notaFiscal); } catch (Exception ex) { throw new Exception("Erro ao conectar e remover" + ex.Message); } }
public List <NotaFiscal> SelectNotaFiscal(NotaFiscal filtro) { try { NotaFiscalDAO notafiscaldao = new NotafiscalDAOImpl(); return(notafiscaldao.Select(filtro)); } catch (Exception ex) { throw new Exception("Erro ao conectar e selecionar" + ex.Message); } }
public void UpdateNotaFiscal(NotaFiscal notaFiscal) { try { NotaFiscalDAO notafiscaldao = new NotafiscalDAOImpl(); notafiscaldao.Update(notaFiscal); } catch (Exception ex) { throw new Exception("Erro ao conectar e atualizar" + ex.Message); } }
public void InsertNotaFiscal(NotaFiscal notaFiscal) { try { NotaFiscalDAO notafiscaldao = new NotafiscalDAOImpl(); notafiscaldao.Insert(notaFiscal); } catch (Exception ex) { throw new Exception("Erro ao conectar e inserir" + ex.Message); } }