At first the endpoint should be renamed to DataDragon to match Riot's documentation naming (the old static data api was deprecated a long time ago).
Also getting data should be simplified, for example getting a champion by its id should look like this:
var champion = await ddragon.Champions.GetByIdÀsync(version, id);
instead of:
var champion= ddragon.Champions.GetAllAsync(latestVersion).Result.Champions.Values.Single(x => x.Id == id);
At first the endpoint should be renamed to DataDragon to match Riot's documentation naming (the old static data api was deprecated a long time ago).
Also getting data should be simplified, for example getting a champion by its id should look like this:
var champion = await ddragon.Champions.GetByIdÀsync(version, id);
instead of:var champion= ddragon.Champions.GetAllAsync(latestVersion).Result.Champions.Values.Single(x => x.Id == id);
Endpoints to be refactored: