public JsonResult UpdStatus(string ids, int status) { var result = false; string msg = "提交失败,请稍后再试!"; result = UserReplyBusiness.UpdateReplyStatus(ids.TrimEnd(',').Replace(",", "','"), status); JsonDictionary.Add("result", result); JsonDictionary.Add("ErrMsg", msg); return(new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public JsonResult GetReplyInfo(string replyid) { string errMsg = ""; var result = false; string url = RouteData.Values["controller"] + "/" + RouteData.Values["action"]; if (!checkGolds(url)) { errMsg = "账户金币不足,不能查看"; } if (string.IsNullOrEmpty(errMsg)) { errMsg = UserReplyBusiness.GetReplyDetail(replyid).Content; result = UserReplyBusiness.UpdateReplyStatus(replyid, 1); } JsonDictionary.Add("errorMsg", errMsg); JsonDictionary.Add("result", result); return(new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }