public void Post([FromBody] List <NewsItem> newsItems) { StartTimer(); foreach (var newsItem in newsItems) { _newsRepository.AddOrUpdateNewsItem(newsItem); } ReportTimer("Posting news items"); }
public void Post([FromBody] List <NewsItem> newsItems) { StartTimer(); foreach (var newsItem in newsItems) { _newsRepository.AddOrUpdateNewsItem(newsItem); } ReportTimer("Posting news items"); }