Beispiel #1
0
        public JsonResult ReplyDetail(string id)
        {
            var model = UserReplyBusiness.GetReplyDetail(id);

            JsonDictionary.Add("Item", model);
            return(new JsonResult
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Beispiel #2
0
        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
            });
        }