исправил заказ

This commit is contained in:
bekodeg 2024-05-05 14:28:15 +04:00
parent acbd00e76c
commit 68d9226293

View File

@ -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)