Ejemplo n.º 1
0
        public ActionResult News(NewsType type = NewsType.GNXW, int nowPageNum = 1)
        {
            if (nowPageNum == 0)
            {
                nowPageNum = 1;
            }

            NewsContext context = new NewsContext
            {
                Type    = type,
                NowPage = nowPageNum
            };

            context.Init();
            return(View(context));
        }