public static List<ShowClasses> GetAllClassesForShow(int ShowID) { String moduleSettings = ModuleConfig.GetSettings(); Data.ShowClasses sc = new Fpp.WebModules.Data.ShowClasses(moduleSettings); List<ShowClasses> classesList = new List<ShowClasses>(); DataSet ds = sc.getAllClassesForShow(ShowID); foreach (DataRow row in ds.Tables[0].Rows) { classesList.Add(new ShowClasses(row)); } return classesList; }