Готовая 2 лаба
This commit is contained in:
parent
a99b59f54a
commit
5988b92709
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user