use list in linq inside where code example
Example: from where in list linq
var filteredOrders = from order in orders.Order
where allowedStatus.Contains(order.StatusCode)
select order;
var filteredOrders = from order in orders.Order
where allowedStatus.Contains(order.StatusCode)
select order;