Balberova D.N. LabWork06Hard #13

Closed
august wants to merge 12 commits from LabWork06Hard into LabWork05Hard
4 changed files with 10 additions and 7 deletions
Showing only changes of commit 461e4aa2c9 - Show all commits

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

@ -53,8 +53,9 @@ namespace SushiBarDatabaseImplement.Models
return;
}
Status = model.Status;
DateImplement = model.DateImplement;
ImplementerId = model.ImplementerId;
DateImplement = model.DateImplement;
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

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