ISEbd-21 Melnikov I. O. Lab work 02 Base #2

Closed
Igor-Melnikov wants to merge 5 commits from lab2 into lab1
Showing only changes of commit 4b15203b79 - Show all commits

View File

@ -42,7 +42,12 @@ namespace BlacksmithWorkshopFileImplement.Implements
{
return null;
}
return source.Orders.FirstOrDefault(x => (model.Id.HasValue && x.Id == model.Id))?.GetViewModel;
var order = source.Orders.FirstOrDefault(x => (model.Id.HasValue && x.Id == model.Id))?.GetViewModel;
if (order == null)
{
return null;
}
return AddManufactureName(order);
}
public OrderViewModel? Insert(OrderBindingModel model)
{