public static List <Pedido> buscarPedidos() { try { return(PedidoDAO.GetAll()); } catch (ApplicationException ex) { throw new ApplicationException(ex.Message); } }
public DataTable GetAll() { var pedidoDAO = new PedidoDAO(); return(pedidoDAO.GetAll()); }