Ejemplo n.º 1
0
        /// <inheritdoc />
        public async Task <EventAttendees> CreateEventAttendees(NewEventAttendee newEventAttendees)
        {
            EventAttendees eventAttendees = new EventAttendees
            {
                event_id = newEventAttendees.event_id,
                user_id  = newEventAttendees.user_id
            };

            _context.EventAttendees.Add(eventAttendees);
            await _context.SaveChangesAsync();

            return(eventAttendees);
        }
Ejemplo n.º 2
0
        public async Task <EventAttendees> CreateEventAttendees([FromBody] NewEventAttendee newEventAttendees)
        {
            var eventAttendeeResults = _HostRepository.CreateEventAttendees(newEventAttendees).Result;

            return(eventAttendeeResults);
        }