var filteredOrders = from order in orders.Order where allowedStatus.Contains(order.StatusCode) select order;