Exemplo n.º 1
0
        /// <summary>
        /// 主页面
        /// </summary>
        /// <returns></returns>
        public ActionResult Home()
        {
            Post_bll          post_bll       = new Post_bll();
            List <Post_model> post_modelList = post_bll.GetPost(1, 50);

            LoginStatusConfig();          //配置登录状态
            return(View(post_modelList));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 主页面
        /// </summary>
        /// <returns></returns>
        public ActionResult Home()
        {
            if (Session["userName"] == null)
            {
                return(View("LoginRemind"));
            }
            Post_bll          post_bll       = new Post_bll();
            List <Post_model> post_modelList = post_bll.GetPost(1, 20);

            LoginStatusConfig();          //配置登录状态
            return(View(post_modelList));
        }