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()); }
public List <Order> GetAllOrders() { return(XO.GetAllOrders()); }