Esempio n. 1
0
        //get all clients orders
        public IEnumerable GetAllOrders(string option)
        {
            OrdersLogic orders = new OrdersLogic();

            switch (option)
            {
            case "All":
                return(orders.GetAllOrders());

            case "Open":
                return(orders.GetAllOpenOrders());

            case "Closed":
                return(orders.GetAllClosedOrders());

            default:
                return(orders.GetAllOrders());
            }
        }