private void SavedTwitter(List <TwitterObject> twitter, string param) { try { using (var twitterRepository = new TwitterRepository()) { foreach (var item in twitter) { if (!twitterRepository.ExistsTwitter(item.id)) { item.textoSearch = param; twitterRepository.SaveTwitter(new TweetedSave(item)); } } } } catch (Exception) { throw; } }