Example #1
0
        public ActionResult List(int typeId, int page = 0)
        {
            FeedBackTypeInfo typeinfo = FeedBack.GetFeedBackTypeById(typeId);

            if (typeinfo == null)
            {
                return(PromptView("/", "您访问的页面不存在"));
            }

            PageModel pageModel = new PageModel(20, page, FeedBack.GetFeedBackListCount(typeId));

            FeedBackListModel model = new FeedBackListModel
            {
                //ArticleClassInfo = info,
                FeedBackTypeInfo = typeinfo,
                FeedBackList     = FeedBack.GetFeedBackList(pageModel.PageSize, pageModel.PageNumber, typeId),
                PageModel        = pageModel,
                FeedBackModel    = new FeedBackModel()
            };

            return(View(model));
        }