Мелкая правка для возможно более корректной работы.

This commit is contained in:
Programmist73 2023-04-22 10:22:12 +04:00
parent d82537bb74
commit 9931a4508c

View File

@ -44,20 +44,20 @@ namespace BlacksmithWorkshopBusinessLogic.BusinessLogic
if (orders == null || orders.Count == 0)
{
orders = _orderLogic.ReadList(new OrderSearchModel
var secondCheckOrders = _orderLogic.ReadList(new OrderSearchModel
{
Status = OrderStatus.Ожидание
});
if (orders == null || orders.Count == 0)
if (secondCheckOrders == null || orders.Count == 0)
{
orders = _orderLogic.ReadList(new OrderSearchModel
var thirdCheckOrders = _orderLogic.ReadList(new OrderSearchModel
{
Status = OrderStatus.Выполняется
});
if (orders == null || orders.Count == 0)
if (thirdCheckOrders == null || orders.Count == 0)
{
_logger.LogWarning("All orders is done.");