fix
This commit is contained in:
parent
a17a5f38cd
commit
7a7a1f2ed3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user