コード例 #1
0
ファイル: TFTIRepository.cs プロジェクト: gaskij/tfti
        /// <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);
        }
コード例 #2
0
        public async Task <EventAttendees> CreateEventAttendees([FromBody] NewEventAttendee newEventAttendees)
        {
            var eventAttendeeResults = _HostRepository.CreateEventAttendees(newEventAttendees).Result;

            return(eventAttendeeResults);
        }