Beispiel #1
0
 public static void DeleteLecture(int lecId)
 {
     using (var db = new HwProj_DBContext())
     {
         var toDelete = db.Lecture.Find(lecId);
         db.Remove(toDelete);
         db.SaveChanges();
     }
 }