Example #1
0
        public List <Order> Lorder(Func <Order, bool> predicat = null)
        {
            List <Order> orders = XO.GetAllOrders();

            if (predicat == null)
            {
                return(orders);
            }
            var v = from item in orders
                    where predicat(item) == true
                    select item.Clone();

            return(v.ToList());
        }
Example #2
0
 public List <Order> GetAllOrders()
 {
     return(XO.GetAllOrders());
 }