Пример #1
0
        public ActionResult Index()
        {
            SessionStatus();
            var user = System.Web.HttpContext.Current.GetMySessionObject();

            if (user == null)
            {
                return(View());
            }
            List <string> PostTitle = _posts.GetPostsList();
            List <string> PostText  = _posts.GetPostsList1();
            List <string> PostImage = _posts.GetPostsList2();

            UserData u = new UserData
            {
                Username  = user.Username,
                Level     = user.Level,
                TitleList = PostTitle,
                TextList  = PostText,
                ImageList = PostImage
            };

            return(View(u));
        }