public int DeleteGameSession(GameSession gamesession) { using (var _db = new ApplicationDbContext()) { var response = _GSessionService.DeleteGameSession(_db, gamesession.Id); // will return null if gamesession does not exist return(_db.SaveChanges()); } }