/// <summary>
        /// 根据某个polling guid获取这个polling的所有内容(验证guid和appid之间的关系)
        /// </summary>
        /// <param name="guid"></param>
        /// <returns></returns>
        public ActionResult GetPolling(string guid)
        {
            var appidString = Request["AppId"];
            var appid       = int.Parse(appidString);
            var polling     = _objService.GetPollingView(guid);

            return(Json(new { Status = WxVoteType.NotVotedQA, Message = "polling", data = polling }, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public ActionResult Edit(string id, int appId)
        {
            ViewBag.AppId = appId;
            AppId         = appId;

            var objView = new PollingView();

            if (!string.IsNullOrEmpty(id) && id != "0")
            {
                var Id = int.Parse(id);
                objView = _pollingService.GetPollingView(Id);
            }

            if (!string.IsNullOrEmpty(id))
            {
                base.AppDataPermissionCheck(permission, appId, int.Parse(objView.AppId));
            }

            return(View(objView));
        }