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; }