I got a small problem, I'm trying to display Facebook, Instagram and twitter in one view and order them by date, but i'm not really sure how can i achieve that
Here is my ActionResult for Twitter, then I have almost identical for Instagram and Facebook
var twitterContext = new TwitterContext(auth);
ulong sinceId = 1;
const int Count = 20;
var combinedSearchResults = new List<Status>();
var tweets =
await
(from tweet in twitterContext.Status
where tweet.Type == StatusType.User &&
tweet.Count == Count &&
tweet.RetweetedStatus.StatusID == 0 &&
tweet.ExcludeReplies == true &&
tweet.SinceID == sinceId
select new NewsViewModel
{
DateAdded = tweet.CreatedAt,
ScreenName = tweet.User.ScreenNameResponse,
Text = tweet.Text,
StatusId = tweet.StatusID
})
.ToListAsync();
return View(tweets);
}
how can I put all those 3 together and display them in Index view ? I'm kinda new to this stuff, would really appreciate the answer and help