示例#1
0
        public OxiteViewModelItemItems <Speaker, ScheduleItem> Item(Speaker speaker)
        {
            if (speaker == null)
            {
                return(null);
            }

            IPageOfItems <ScheduleItem> scheduleItems = scheduleItemService.GetScheduleItems(new ScheduleItemFilterCriteria {
                SpeakerName = speaker.Name
            });

            return(new OxiteViewModelItemItems <Speaker, ScheduleItem>(speaker, scheduleItems));
        }
        private OxiteViewModelItemItems <Speaker, ScheduleItem> ItemImpl(SpeakerAddress speakerAddress)
        {
            Speaker speaker = speakerService.GetSpeaker(speakerAddress);

            if (speaker == null)
            {
                return(null);
            }

            IPageOfItems <ScheduleItem> scheduleItems = scheduleItemService.GetScheduleItems(new ScheduleItemFilterCriteria {
                SpeakerName = speaker.Name
            });

            return(new OxiteViewModelItemItems <Speaker, ScheduleItem>(speaker, scheduleItems));
        }
示例#3
0
        public OxiteViewModelItems <ScheduleItem> List(ScheduleItemFilterCriteria scheduleItemFilterCriteria)
        {
            SetUserScheduleStatus();

            return(new OxiteViewModelItems <ScheduleItem>(scheduleItemService.GetScheduleItems(scheduleItemFilterCriteria)));
        }