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"); }
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"); }