This commit is contained in:
dasha 2023-02-27 22:16:28 +04:00
parent 3f49eade0f
commit 9450ae2f6f

View File

@ -93,6 +93,7 @@ namespace SushiBarDatabaseImplement.Implements
using var context = new SushiBarDatabase();
var element = context.SushiList
.Include(x => x.Ingredients)
.Include(x => x.Orders)
.FirstOrDefault(rec => rec.Id == model.Id);
if (element != null)
{