ISEbd-21 Melnikov I. O. Lab work 02 Base #2
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user