public async Task <string> GetNewID() { var rnd = new Random(); string id; do { id = GenerateID(rnd); } while (await Questions.AnyAsync(q => q.Identifier == id)); return(id); }
public async Task <string> GetNewID() { var rnd = new Random(); string id; do { id = GenerateID(rnd); } while (await Questions.AnyAsync(q => q.Identifier == id)); return(id); }