示例#1
0
 public void DeleteSubject(SubjectEntity entry)
 {
     _databaseSession.Context.Subjects.Remove(entry);
     _databaseSession.Context.SaveChanges();
 }
示例#2
0
 public void AddSubject(SubjectEntity entry)
 {
     _databaseSession.Context.Subjects.Add(entry);
     _databaseSession.Context.SaveChanges();
 }