public Table BuildTable() { var table = new Table { Title = new TableTitle(Name, Style.Parse("bold")) }; var databases = Databases.OrderBy(x => x.Name).ToArray(); if (databases.Length == 1) { var database = databases.Single(); return(BuildTableForSingleDatabase(table, database)); } else { return(BuildTableForMultipleDatabases(table, databases)); } }