示例#1
0
        public ActionResult Index_organizor(int meetingID)
        {
            Status status = Status.SUCCESS;

            MeetingService meetingService = new MeetingService();
            MeetingInfo    meeting        = null;

            status = meetingService.getOne(meetingID, out meeting);

            DeviceService            deviceService = new DeviceService();
            List <DeviceForDelegate> devices       = null;

            status = deviceService.getAllForDelegate(meeting.meetingToStartTime, meeting.meetingStartedTime, out devices);

            DelegateService     delegateService = new DelegateService();
            List <DelegateInfo> delegates       = null;

            status = delegateService.getAll(meetingID, out delegates);

            Session["meetingID"] = meetingID;
            return(View(Tuple.Create(delegates, devices)));
        }
示例#2
0
        public ActionResult Show_organizor(int meetingID)
        {
            Status status = Status.SUCCESS;

            MeetingService meetingService = new MeetingService();
            MeetingInfo    meeting        = null;

            status = meetingService.getOne(meetingID, out meeting);

            AgendaService     agendaService = new AgendaService();
            List <AgendaInfo> agendas       = null;

            status = agendaService.getAll(meetingID, out agendas);

            DelegateService     delegateService = new DelegateService();
            List <DelegateInfo> delegates       = null;

            status = delegateService.getAll(meetingID, out delegates);

            MeetingPlaceService           meetingPlaceService = new MeetingPlaceService();
            List <MeetingPlaceForMeeting> meetingPlaces       = null;

            status = meetingPlaceService.getAllForMeeting(out meetingPlaces);

            ShowMeetingItemModel model = new ShowMeetingItemModel
            {
                meeting       = meeting,
                agendas       = agendas,
                delegates     = delegates,
                meetingPlaces = meetingPlaces
            };

            Session["meetingID"] = meetingID;

            return(View(model));
        }