ПИбд-22 Боровков М В 5 лабораторная работа #6
@ -36,10 +36,6 @@ namespace SushiBarDatabaseImplement.Implements
|
|||||||
}
|
}
|
||||||
public OrderViewModel? GetElement(OrderSearchModel model)
|
public OrderViewModel? GetElement(OrderSearchModel model)
|
||||||
{
|
{
|
||||||
if (!model.Id.HasValue)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
using var context = new SushiBarDatabase();
|
using var context = new SushiBarDatabase();
|
||||||
return context.Orders
|
return context.Orders
|
||||||
.Include (o => o.Sushi)
|
.Include (o => o.Sushi)
|
||||||
|
Loading…
Reference in New Issue
Block a user