Someneedchangeonsdacha
This commit is contained in:
parent
f6e8ee6150
commit
6a2ccb3787
@ -59,7 +59,8 @@ namespace SewingDressesBusinessLogic.BusinessLogic
|
||||
_logger.LogDebug("DoWork. Worker {Id} finish order { Order}", implement.Id, order.Id);
|
||||
_orderLogic.FinishOrder(new OrderBindingModel
|
||||
{
|
||||
Id = order.Id
|
||||
Id = order.Id,
|
||||
ImplementId = implement.Id
|
||||
});
|
||||
}
|
||||
catch (InvalidOperationException ex)
|
||||
|
@ -48,7 +48,7 @@ namespace SewingDressesDatabaseImplement.Implements
|
||||
if (string.IsNullOrEmpty(model.ImplementFIO) && !model.Id.HasValue)
|
||||
return null;
|
||||
using var context = new SewingDressesDatabase();
|
||||
return context.Implements.FirstOrDefault(x => (string.IsNullOrEmpty(model.ImplementFIO) || x.ImplementFIO.Equals(model.ImplementFIO)) && (!model.Id.HasValue && model.Id == x.Id))?.GetViewModel;
|
||||
return context.Implements.FirstOrDefault(x => (string.IsNullOrEmpty(model.ImplementFIO) || x.ImplementFIO.Equals(model.ImplementFIO)) && (!model.Id.HasValue || model.Id == x.Id))?.GetViewModel;
|
||||
}
|
||||
public List<ImplementViewModel> GetFullList()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user