public void DeleteGame(string GameId) { (items["AllGameBoards"] as List <string>).Remove(GameId); items.Remove("GameBoard" + GameId); items.Remove("Password" + GameId); var guid = GetGuids().Where(p => p.Value == GameId).Select(p => p.Key).FirstOrDefault(); if (guid != new Guid()) { GetGuids().Remove(guid); } var games = (items["GamesWithTime"] as Dictionary <string, DateTime>); if (games.Keys.Contains(GameId)) { games.Remove(GameId); } items.Remove("Password" + GameId); }
public void DeleteUsers(string GameId) { items.Remove("AllPlayers" + GameId); items.Remove("CurrentUser" + GameId); }