Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }