public ActionResult EditFeedBackType(FeedBackTypeModel model, int TypeId = -1) { FeedBackTypeInfo feedBackTypeInfo = FeedBack.GetFeedBackTypeById(TypeId); if (feedBackTypeInfo == null) { return(PromptView("信息反馈分类不存在")); } if (ModelState.IsValid) { feedBackTypeInfo.TypeName = model.TypeName; feedBackTypeInfo.IsShowList = model.IsShowList; feedBackTypeInfo.Tags = model.Tags; feedBackTypeInfo.Body = model.Body; FeedBack.UpdateFeedBackType(feedBackTypeInfo); //AddAdminOperateLog("修改广告位置", "修改广告位置,广告位置ID为:" + adPosId); return(PromptView("信息反馈分类修改成功")); } ViewData["referer"] = SiteUtils.GetAdminRefererCookie(); return(View(model)); }
public ActionResult EditFeedBackType(int TypeId = -1) { FeedBackTypeInfo feedBackTypeInfo = FeedBack.GetFeedBackTypeById(TypeId); if (feedBackTypeInfo == null) { return(PromptView("信息反馈分类不存在")); } FeedBackTypeModel model = new FeedBackTypeModel { TypeName = feedBackTypeInfo.TypeName, IsShowList = feedBackTypeInfo.IsShowList, Body = feedBackTypeInfo.Body, Tags = feedBackTypeInfo.Tags }; return(View(model)); }
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)); }