Ejemplo n.º 1
0
        public ActionResult <int> CreateEvent(Event newEvent)
        {
            int newEventId = eventDAO.CreateEvent(newEvent);

            eventDAO.AddHostasAGuest(newEvent.HostId, newEventId);
            return(newEventId);
        }