public ActionResult TestPersist() { var app = _twitterAppRepository.GetItem(1); var results = _twitterSearchRepository.Search("ecampus", 0, app); var tweets = Mapper.Map <List <TwitterStatus>, List <Tweet> >(results.SearchResult.Statuses.ToList()); _tweetsLogic.PersistTweets(tweets, 0); return(Content("done")); }
public TwitterApp GetItem(int id) { return(_apiApplicationRepository.GetItem(id)); }