public ActionResult Create3(int eventId) { MoreDayEventModel mdeModel = new MoreDayEventModel(); mdeModel.eventId = eventId; mdeModel.EventDates = eFactory.getEventDates(eventId).ToList(); return(View(mdeModel)); }
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)); }