예제 #1
0
        public ActionResult Index()
        {
            var user = Session["User"] as User;



            ViewBag.Layout = "Index";



            if (Layout())
            {
                var listOfPost = commentsManager.CommetPostCombo(user.Id);
                ViewBag.currentUser = user.Id;


                ViewBag.PostList = listOfPost;



                return(View("Index"));
            }
            return(View("error"));
        }