Example #1
0
        public ActionResult Home()
        {
            TwitterModal _twitterModal = new TwitterModal();
            Person       userModel;

            if (Session["UserInfo"] != null)
            {
                userModel = (Person)Session["UserInfo"];
                _twitterModal._person.fullname = userModel.fullname;
                _twitterModal._person.email    = userModel.email;
                _twitterModal._person.user_id  = userModel.user_id;
                _twitterModal._tweets          = _Repository.getAllUserTweets(userModel.user_id);
                _twitterModal._following       = _Repository.getFollowings(userModel.user_id);
                _twitterModal._follower        = _Repository.getFollowers(userModel.user_id);
            }
            return(View(_twitterModal));
        }