исправил заказ
This commit is contained in:
parent
acbd00e76c
commit
68d9226293
@ -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