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