Ejemplo n.º 1
0
        public ActionResult Index()
        {
            if (!Security.IsAuthenticated)
            {
                return(View("Landing", new LoginSignupViewModel()));
            }
            var timeline = Ribbits.GetTimelineFor(Security.UserId);

            return(View("Timeline", timeline));
        }
Ejemplo n.º 2
0
        // 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));
        }