Exemple #1
0
 //Updates all the changes made to the database
 public async Task UpdateSessionAsync(SessionInfo session)
 {
     DbContext.Session.Update(session);
     await DbContext.SaveChangesAsync();
 }
Exemple #2
0
 //Deletes the session out of the database
 public async Task DeleteSessionAsync(SessionInfo session)
 {
     DbContext.Session.Remove(session);
     await DbContext.SaveChangesAsync();
 }
Exemple #3
0
 //Adds session to database
 public async Task InsertSessionAsync(SessionInfo session)
 {
     DbContext.Session.Add(session);
     await DbContext.SaveChangesAsync();
 }