public async Task <Interface.GameSession> CreateGameSession(Interface.GameSession gameSession)
 {
     if (cache.FirstOrDefault(i => i.Id == gameSession.Id) == null)
     {
         cache.Add(gameSession);
     }
     return(await Task.FromResult(gameSession));
 }
        public async Task <Interface.GameSession> UpdateGameSession(Interface.GameSession gameSession)
        {
            var cached = cache.FirstOrDefault(i => i.Id == gameSession.Id);

            if (cached != null)
            {
                cached.CurrentPlayerId = gameSession.CurrentPlayerId;
                Trace.WriteLine($"Updating game session {gameSession.Id} -> {gameSession.CurrentPlayerId} ");
            }
            return(await Task.FromResult(cached));
        }