public ActionResult Index() { if (!Security.IsAuthenticated) { return(View("Landing", new LoginSignupViewModel())); } var timeline = Ribbits.GetTimelineFor(Security.UserId); return(View("Timeline", timeline)); }
// GET: Home public ActionResult Index() { if (!Security.IsAuthenticated) { //viewname and object model passed in return(View("Landing", new LoginSignupViewModel())); } var timeline = Ribbits.GetTimelineFor(Security.UserId).ToArray(); return(View("Timeline", timeline)); }