PIbd-22. Safiulova K.N. LabWork_03_hard #15
@ -39,7 +39,7 @@ namespace AircraftPlantDatabaseImplement.Implements
|
||||
}
|
||||
|
||||
using var context = new AircraftPlantDatabase();
|
||||
return GetViewModel(context.Orders.FirstOrDefault(x => (model.Id.HasValue && x.Id == model.Id)));
|
||||
return GetViewModel(context.Orders.FirstOrDefault(x => model.Id.HasValue && x.Id == model.Id));
|
||||
}
|
||||
public OrderViewModel? Insert(OrderBindingModel model)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user