コード例 #1
0
ファイル: HomeController.cs プロジェクト: josacore/RibbitMvc
        public ActionResult Index()
        {
            if (!Security.IsAuthenticated)
            {
                return(View("Landing", new LoginSignupViewModel()));
            }
            var timeline = Ribbits.GetTimelineFor(Security.UserId);

            return(View("Timeline", timeline));
        }
コード例 #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));
        }