This commit is contained in:
MaxKarme 2023-04-08 17:38:26 +04:00
parent a17a5f38cd
commit 7a7a1f2ed3

View File

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