исправления

This commit is contained in:
dasha 2023-04-11 16:31:01 +04:00
parent 9e7b7de847
commit 461e4aa2c9
4 changed files with 10 additions and 7 deletions

View File

@ -76,6 +76,8 @@ namespace SushiBarBusinessLogic.BusinessLogics
{
Id = order.Id
});
// отдыхаем
Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100));
}
// кто-то мог уже перехватить заказ, игнорируем ошибку
catch (InvalidOperationException ex)
@ -88,8 +90,6 @@ namespace SushiBarBusinessLogic.BusinessLogics
_logger.LogError(ex, "Error while do work");
throw;
}
// отдыхаем
Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100));
}
});
}

View File

@ -54,7 +54,8 @@ namespace SushiBarDatabaseImplement.Models
}
Status = model.Status;
DateImplement = model.DateImplement;
ImplementerId = model.ImplementerId;
if (model.ImplementerId.HasValue)
ImplementerId = model.ImplementerId;
}
public OrderViewModel GetViewModel => new()

View File

@ -65,7 +65,8 @@ namespace SushiBarFileImplement.Models
}
Status = model.Status;
DateImplement = model.DateImplement;
ImplementerId = model.ImplementerId;
if (model.ImplementerId.HasValue)
ImplementerId = model.ImplementerId;
}
public OrderViewModel GetViewModel => new()

View File

@ -43,7 +43,8 @@ namespace SushiBarListImplement.Models
}
Status = model.Status;
ImplementerId = model.ImplementerId;
DateImplement = model.DateImplement;
if (model.ImplementerId.HasValue)
ImplementerId = model.ImplementerId;
}
public OrderViewModel GetViewModel => new()
{