Готовая 2 лаба

This commit is contained in:
Алина 2024-03-07 18:50:50 +04:00
parent a99b59f54a
commit 5988b92709

View File

@ -25,10 +25,11 @@ namespace TypographyFileImplement.Implements
private OrderViewModel DefinePrintedName(OrderViewModel model)
{
string? printedName = source.Printeds.FirstOrDefault(x => model.PrintedId == x.Id)?.PrintedName;
if (printedName != null)
if (printedName == null)
{
model.PrintedName = printedName;
return null;
}
model.PrintedName = printedName;
return model;
}