public string Distinct(string dbName) { var api = new MongoDB2_6Api(dbName); var result = api.Distinct(); var name = result.Any() ? result.First() : "none"; return("Name: " + name); }