private AvailableShowsModel GetAvailableShows() { var res = new AvailableShowsModel(); var showsList = Shows.getPublishedShows(-1); // just get all published shows before closing date. if (showsList.Count > 0) { foreach (Shows show in showsList) { var tmp = new ShowsModel(); tmp.Show = show; tmp.Details = ShowDetails.GetShowDetails(show.ShowID); res.Shows.Add(tmp); } } return res; }