From 7401da22076abcc1b825312ea3a700a02f0ab8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=8F=D1=80=20=D0=90=D0=B3=D0=BB?= =?UTF-8?q?=D0=B8=D1=83=D0=BB=D0=BB=D0=BE=D0=B2?= Date: Sun, 19 Mar 2023 17:26:50 +0400 Subject: [PATCH 1/2] fix --- ConfectioneryRestApi/Controllers/ImplementerController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConfectioneryRestApi/Controllers/ImplementerController.cs b/ConfectioneryRestApi/Controllers/ImplementerController.cs index 9664734..719140c 100644 --- a/ConfectioneryRestApi/Controllers/ImplementerController.cs +++ b/ConfectioneryRestApi/Controllers/ImplementerController.cs @@ -49,7 +49,7 @@ namespace ConfectioneryRestApi.Controllers { return _order.ReadList(new OrderSearchModel { - Status = OrderStatus.Принят + Statusses = new() { OrderStatus.Принят } }); } catch (Exception ex) From adec36fa6b75b6cd486371aafc94496ac2b7c9f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=8F=D1=80=20=D0=90=D0=B3=D0=BB?= =?UTF-8?q?=D0=B8=D1=83=D0=BB=D0=BB=D0=BE=D0=B2?= Date: Tue, 21 Mar 2023 08:57:30 +0400 Subject: [PATCH 2/2] fix --- ConfectionaryBusinessLogic/WorkModeling.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConfectionaryBusinessLogic/WorkModeling.cs b/ConfectionaryBusinessLogic/WorkModeling.cs index c9bba89..623313f 100644 --- a/ConfectionaryBusinessLogic/WorkModeling.cs +++ b/ConfectionaryBusinessLogic/WorkModeling.cs @@ -83,6 +83,8 @@ namespace ConfectioneryBusinessLogic { Id = order.Id }); + // отдыхаем + Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); } // кто-то мог уже перехватить заказ, игнорируем ошибку catch (InvalidOperationException ex) @@ -95,8 +97,6 @@ namespace ConfectioneryBusinessLogic _logger.LogError(ex, "Error while do work"); throw; } - // отдыхаем - Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); } }); }