public ActionResult SplitSocialDashboard() { var timelineProvider = new TimelineProvider(); var viewModel = timelineProvider.PrepareTimelineViewModel("0f8fad5b-d9cb-469f-a165-70867728950e", true); TempData["Error"] = timelineProvider.ErrorText; if (viewModel != null) { ViewBag.HowLongSincePublished = timelineProvider.HowLongSincePublished; ViewBag.UserDetailsInTweet = timelineProvider.UserDetailsInTweet; } // Returns a TimelineViewModel for the separate column View. return View("Timeline", viewModel); }
public ActionResult Index() { var timelineProvider = new TimelineProvider(); var viewModel = timelineProvider.PrepareTimelineViewModel("936DA01F-9ABD-4d9d-80C7-02AF85C822A8", true); TempData["Error"] = timelineProvider.ErrorText; if (viewModel != null) { ViewBag.HowLongSincePublished = timelineProvider.HowLongSincePublished; ViewBag.UserDetailsInTweet = timelineProvider.UserDetailsInTweet; } // Returns a TimelineViewModel for the main View. return View("Timeline", viewModel); }