示例#1
0
        public void Post([FromBody] List <ClubEventInputDto> events)
        {
            StartTimer();

            var clubEvents = _mapper.Map <List <ClubEvent> >(events);

            foreach (var ev in clubEvents)
            {
                _eventRepository.AddOrUpdateEvent(ev);
            }

            ReportTimer("Posting events");
        }