This commit is contained in:
shadowik 2023-04-20 08:12:15 +04:00
parent f8255473e5
commit c86a2f8c3c

View File

@ -72,7 +72,7 @@ namespace PizzeriaBusinessLogic.BusinessLogics
_orderLogic.TakeOrderInWork(new OrderBindingModel
{
Id = order.Id,
// ImplementerId = implementer.Id
ImplementerId = implementer.Id
});
// делаем работу
Thread.Sleep(implementer.WorkExperience * _rnd.Next(100, 1000) * order.Count);
@ -114,8 +114,8 @@ namespace PizzeriaBusinessLogic.BusinessLogics
{
var runOrder = await Task.Run(() => _orderLogic.ReadElement(new OrderSearchModel
{
// ImplementerId = implementer.Id,
// Status = OrderStatus.Выполняется
ImplementerId = implementer.Id,
Status = OrderStatus.Выполняется
}));
if (runOrder == null)
{