public ActionResult Add_organizor() { MeetingPlaceService meetingPlaceService = new MeetingPlaceService(); List <MeetingPlaceForMeeting> meetingPlaces = null; meetingPlaceService.getAllForMeeting(out meetingPlaces); MeetingInfo meeting = new MeetingInfo(); meeting.meetingToStartTime = DateTime.Now.AddDays(1); meeting.meetingStartedTime = DateTime.Now.AddDays(2); UserService userService = new UserService(); List <UserForDelegate> users = new List <UserForDelegate>(); userService.getAllForDelegate(out users); ShowMeetingModel model = new ShowMeetingModel { meeting = meeting, meetingPlaces = meetingPlaces, users = users }; return(View(model)); }
public ActionResult Edit_organizor(int meetingID) { MeetingPlaceService meetingPlaceService = new MeetingPlaceService(); List <MeetingPlaceForMeeting> meetingPlaces = null; meetingPlaceService.getAllForMeeting(out meetingPlaces); MeetingInfo meeting = null; MeetingService meetingService = new MeetingService(); meetingService.getOne(meetingID, out meeting); EditMeetingModel model = new EditMeetingModel { meeting = meeting, meetingPlaces = meetingPlaces }; Session["meetingID"] = meetingID; return(View(model)); }
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)); }