
0
Completed
Functions to know Order Status
Hi,
I need function that returns if there are orders active but not filled yet. I developed this function:
private bool ActiveOrders()
{
foreach (var order in Orders.Where(t => t.State == OrderStates.Active))
{
return true;
}
return false;
}
Is correct?
Customer support service by UserEcho
Hello
Yes, It should work.
You can also simplify it :