From 7a7a1f2ed3e1f1767fe4f0e3f0de5af23dcaa2ae Mon Sep 17 00:00:00 2001 From: MaxKarme <91691525+MaxKarme@users.noreply.github.com> Date: Sat, 8 Apr 2023 17:38:26 +0400 Subject: [PATCH] fix --- University/DatabaseImplement/Implements/DisciplineStorage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/University/DatabaseImplement/Implements/DisciplineStorage.cs b/University/DatabaseImplement/Implements/DisciplineStorage.cs index d5a39ff..de5a49f 100644 --- a/University/DatabaseImplement/Implements/DisciplineStorage.cs +++ b/University/DatabaseImplement/Implements/DisciplineStorage.cs @@ -66,7 +66,7 @@ namespace UniversityDatabaseImplement.Implements var element = context.Disciplines.FirstOrDefault(rec => rec.Id == model.Id); if (element != null) { - context.ExaminationResults.Remove(element); + context.Disciplines.Remove(element); context.SaveChanges(); return element.GetViewModel; }