public static bool UpdateUserGames(string username, List <Game> gamesToSet)
        {
            bool result = true;

            foreach (var game in gamesToSet)
            {
                if (game.IsOwned)
                {
                    GameAccessor.CreateUserGame(game.Id, username);
                }
                else
                {
                    GameAccessor.DeleteUserGame(game.Id, username);
                }
            }

            return(result);
        }
        public static bool ToggleUserGame(int gameId, string username)
        {
            bool result = false;

            try
            {
                bool created = 1 == GameAccessor.CreateUserGame(gameId, username);
                if (created)
                {
                    result = created;
                }
                else
                {
                    result = 1 == GameAccessor.DeleteUserGame(gameId, username);
                }
            }
            catch (Exception)
            {
                throw;
            }

            return(result);
        }