зафиксировать

This commit is contained in:
Kristina 2024-05-04 09:52:48 +04:00
parent ecada87dee
commit 3d93a5ecd7

View File

@ -61,6 +61,7 @@ namespace BlacksmithWorkshopBusinessLogic.BusinessLogics
try
{
_logger.LogDebug("DoWork. Worker {Id} try get order { Order}", implementer.Id, order.Id);
// пытаемся назначить заказ на исполнителя
_orderLogic.TakeOrderInWork(new OrderBindingModel
{
@ -70,6 +71,7 @@ namespace BlacksmithWorkshopBusinessLogic.BusinessLogics
// делаем работу
Thread.Sleep(implementer.WorkExperience * _rnd.Next(100, 1000) * order.Count);
_logger.LogDebug("DoWork. Worker {Id} finish order { Order}", implementer.Id, order.Id);
_orderLogic.FinishOrder(new OrderBindingModel
{
Id = order.Id