public DataTable GetOrders() { OrderDatahandler Orderdata = new OrderDatahandler(); dataT = Orderdata.GetOrders("Orders"); return(dataT); }
public DataTable FiltereOrder(int orderID) { OrderDatahandler OrderData = new OrderDatahandler(); FilteredOrder = OrderData.SearchOrder("Orders", orderID); return(FilteredOrder); }
public DataTable FiltereClientOrders(string ClientID) { ClientDataHandler ClientHandler = new ClientDataHandler(); try { OrderDatahandler clientData = new OrderDatahandler(); FilteredClientOrder = clientData.GetOrderClients("Clients", ClientID); ClientHandler.ErrorChecker = true; return(FilteredClientOrder); } catch (Exception) { ClientHandler.ErrorChecker = false; throw; } }