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

This commit is contained in:
Алина 2024-03-22 22:58:30 +04:00
parent 5988b92709
commit 43084d7f8a

View File

@ -25,11 +25,10 @@ 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)
{
return null;
model.PrintedName = printedName;
}
model.PrintedName = printedName;
return model;
}