예제 #1
0
        public ActionResult Create3(int eventId)
        {
            MoreDayEventModel mdeModel = new MoreDayEventModel();

            mdeModel.eventId    = eventId;
            mdeModel.EventDates = eFactory.getEventDates(eventId).ToList();

            return(View(mdeModel));
        }
예제 #2
0
        public ActionResult Create3(MoreDayEventModel moreDayEvent)
        {
            EventDate eventDate = new EventDate()
            {
                DateStart = moreDayEvent.DateStart,
                DateEnd   = moreDayEvent.DateEnd,
                IdEvent   = moreDayEvent.eventId
            };

            eventDate = eFactory.insertEventDate(eventDate);

            moreDayEvent.EventDates = eFactory.getEventDates(moreDayEvent.eventId).ToList();

            moreDayEvent.DateStart = new DateTime();
            moreDayEvent.DateEnd   = new DateTime();

            return(View(moreDayEvent));
        }