Eliseev E.E. LabWork06_Hard #12

Closed
ElEgEv wants to merge 26 commits from LabWork06_Hard into LabWork05_Hard
Showing only changes of commit 9931a4508c - Show all commits

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.");