public void BundleTenant() { while (true) { List <string> lst = new List <string> { "All" }; var ten = Data.GetAppCodes(); lst.AddRange(ten); string modCode = GetSelectionFromUser("Select Module", lst.ToArray()); if (modCode == null) { break; } if (modCode == "All") { foreach (var b in ten) { Bundling.ProductionPack(b); } } else { Bundling.ProductionPack(modCode); } } }