/// <summary> /// Edit details for a game. /// </summary> public async Task <Game?> Edit(EditGame editGame) { using (var content = editGame.ToContent()) { var(method, path) = Routes.EditGame(GameId); var req = new Request(method, path, content); var resp = await Connection.Send <EditResult <Game> >(req); return(resp.Body !.Object); } }
/// <summary> /// Edit details for a game. /// </summary> public async Task <Game?> Edit(uint game, EditGame editGame) { return(await this[game].Edit(editGame)); }