public IActionResult Index() { var homeViewModel = new HomeViewModel() { Title = "Last 10 Tweets from Salesforce", Tweets = _twitterRepo.GetTweets().ToList() }; return(View(homeViewModel)); }
public IEnumerable <TwitterModel> GetReport() { var userList = _twitterRepository.GetUsers(); var tweets = _twitterRepository.GetTweets(); return(GenerateReport(userList.OrderBy(users => users.UserId).ToList(), tweets, _tweetLengthLimit)); }
public async Task <List <TweetViewModel> > GetTweets(int memberId) { var tweets = await _twitterRepository.GetTweets(memberId); return(tweets.Select(ModelTransformer.TweetToTweetViewModel).ToList()); }
protected override async Task <IList <Tweet> > ImplementExecute() { var tweets = await _twitterRepository.GetTweets(); return(tweets); }