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