public void Process(IQueryable <IWantedList> activeWantedLists) { var showService = new ShowService(Ioc.GetInstance <IShowRepository>()); var setService = new SetService(Ioc.GetInstance <ISetRepository>()); var setSongService = new SetSongService(Ioc.GetInstance <ISetSongRepository>()); var liveSongManglers = (from show in showService.GetAllShows().OrderByDescending(x => x.ShowDate).Take(10) from set in setService.GetSetsForShow(show.ShowId) from setsong in setSongService.GetSetSongsBySet(set.SetId) select new LiveSongDateMangler { LiveSong = (SetSong)setsong, ShowDate = show.ShowDate.Value }); foreach (var wanted in activeWantedLists) { //bust it raw dawg ///LEFT OFF HERE } }
private void Bind() { Guid showId = new Guid(hdnId.Value); SetService setService = new SetService(Ioc.GetInstance <ISetRepository>()); var sets = setService.GetSetsForShow(showId).ToList(); FinalSetNumber = 1; if (sets != null) { if (sets.Count > 0) { FinalSetNumber = sets.Count; } rptSets.DataSource = sets; rptSets.DataBind(); } }