コード例 #1
0
        public ActionResult AddFeedBackType(FeedBackTypeModel model)
        {
            if (ModelState.IsValid)
            {
                FeedBackTypeInfo feedBackInfo = new FeedBackTypeInfo
                {
                    TypeName   = model.TypeName,
                    IsShowList = model.IsShowList,
                    Body       = model.Body,
                    Tags       = model.Tags
                };

                FeedBack.CreateFeedBackType(feedBackInfo);

                return(PromptView("信息反馈分类添加成功"));
            }
            ViewData["referer"] = SiteUtils.GetAdminRefererCookie();
            return(View(model));
        }