PIbd-21 Potapov N.S. LabWork07 #8
@ -26,10 +26,16 @@ namespace SecuritySystemBusinessLogic.BusinessLogics
|
||||
_logger.LogWarning("DoWork. Implementers is null");
|
||||
return;
|
||||
}
|
||||
var orders = _orderLogic.ReadList(new OrderSearchModel
|
||||
var orders = _orderLogic.ReadList(new OrderSearchModel { Status = OrderStatus.Принят });
|
||||
var inWorkOrders = _orderLogic.ReadList(new OrderSearchModel { Status = OrderStatus.Выполняется });
|
||||
if (orders != null && inWorkOrders != null)
|
||||
{
|
||||
Status = OrderStatus.Принят
|
||||
});
|
||||
orders.AddRange(inWorkOrders);
|
||||
}
|
||||
else
|
||||
{
|
||||
orders = inWorkOrders;
|
||||
}
|
||||
if (orders == null || orders.Count == 0)
|
||||
{
|
||||
_logger.LogWarning("DoWork. Orders is null or empty");
|
||||
|
Loading…
x
Reference in New Issue
Block a user