public static List <Order> GetAllSalesBL() { List <Order> salesList = null; try { foreach (SalesUser salesman in SalesDAL.salesmen) { foreach (int item in salesman.SalesIDs) { salesList.Add(OrderBL.SearchOrderBL(item)); } } } catch (GOException ex) { throw ex; } return(salesList); }
public static Order SearchSalesOrderBL(int searchSalesID) { Order searchOrder = null; try { foreach (SalesUser salesman in SalesDAL.salesmen) { foreach (int item in salesman.SalesIDs) { searchOrder = OrderBL.SearchOrderBL(item); } } } catch (GOException ex) { throw ex; } return(searchOrder); }