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)); } }); }