From 19e238d2cc447ea86195bd03dd01380983896b04 Mon Sep 17 00:00:00 2001 From: DavidMakarov Date: Fri, 3 May 2024 12:50:47 +0400 Subject: [PATCH] fix WorkModeling --- .../FlowerShopBusinessLogic/BusinessLogics/WorkModeling.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/FlowerShop/FlowerShopBusinessLogic/BusinessLogics/WorkModeling.cs b/FlowerShop/FlowerShopBusinessLogic/BusinessLogics/WorkModeling.cs index 051d3f5..686187d 100644 --- a/FlowerShop/FlowerShopBusinessLogic/BusinessLogics/WorkModeling.cs +++ b/FlowerShop/FlowerShopBusinessLogic/BusinessLogics/WorkModeling.cs @@ -89,7 +89,8 @@ namespace FlowerShopBusinessLogic.BusinessLogics { Id = Order.Id }); - } + Thread.Sleep(Implementer.Qualification * _rnd.Next(10, 100)); + } catch (InvalidOperationException ex) { @@ -101,8 +102,6 @@ namespace FlowerShopBusinessLogic.BusinessLogics _logger.LogError(ex, "Error while do work"); throw; } - - Thread.Sleep(Implementer.Qualification * _rnd.Next(10, 100)); } }); }