public ActionResult EditFeedBack(FeedBackModel model, int Id = -1) { FeedBackInfo feedBackInfo = FeedBack.GetFeedBackById(Id); if (feedBackInfo == null) { return(PromptView("信息反馈信息不存在")); } if (ModelState.IsValid) { feedBackInfo.Tag = model.Tag; feedBackInfo.LinkMan = model.LinkMan; feedBackInfo.Tel = model.Tel; feedBackInfo.Mobile = model.Mobile; feedBackInfo.Email = model.Email; feedBackInfo.Title = model.Title; feedBackInfo.Body = model.Body; feedBackInfo.Reply = model.Reply; feedBackInfo.State = model.State; feedBackInfo.IsOut = model.IsOut; if (model.State.Equals(1)) { feedBackInfo.ReplyTime = DateTime.Now; } FeedBack.UpdateFeedBackInfo(feedBackInfo); return(PromptView("信息反馈修改成功")); } ViewData["referer"] = SiteUtils.GetAdminRefererCookie(); return(View(model)); }