Esempio n. 1
0
 public async static void ReadactLector(DisciplineContext db, Lector spam, int auditorium)
 {
     if (spam != null)
     {
         spam.Auditorium = auditorium;
         await db.SaveChangesAsync();
     }
 }
Esempio n. 2
0
 public async static void DeleteLector(DisciplineContext db, Lector spam)
 {
     if (spam != null)
     {
         db.Lectors.Remove(spam);
         await db.SaveChangesAsync();
     }
 }
Esempio n. 3
0
 public async static void AddLector(DisciplineContext db, Lector spam)
 {
     db.Lectors.Add(spam);
     await db.SaveChangesAsync();
 }