public async Task <ChallengeSpec> LoadChallenge(string id, bool sudo) { var entity = await _store.Retrieve(id); var spec = JsonSerializer.Deserialize <ChallengeSpec>(entity.Challenge, jsonOptions); return(spec); }
private async Task <bool> Exists(string id) { return (id.NotEmpty() && (await _store.Retrieve(id)) is Data.Gamespace ); }