Mochalov D.V. LabWork06_Base #10

Closed
b0n3l3sS wants to merge 14 commits from LabWork06_Base into LabWork05_Base
2 changed files with 1 additions and 5 deletions
Showing only changes of commit 23f2fbf3eb - Show all commits

View File

@ -119,7 +119,7 @@ namespace LawFirmBusinessLogic.BusinessLogics
// доделываем работу
Thread.Sleep(implementer.WorkExperience * _rnd.Next(100, 300) * runOrder.Count);
_logger.LogDebug("DoWork. Worker {Id} finish order {Order}", implementer.Id, runOrder.Id);
_orderLogic.FinishOrder(new OrderBindingModel
_orderLogic.DeliveryOrder(new OrderBindingModel
{
Id = runOrder.Id
});

View File

@ -16,10 +16,6 @@ namespace LawFirmDatabaseImplement.Implements
{
public OrderViewModel? GetElement(OrderSearchModel model)
{
if (!model.Id.HasValue)
{
return null;
}
using var context = new LawFirmDatabase();
return context.Orders
.Include(x => x.Document)