/// <summary> /// 会议互动 /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult Interaction(int id) { var meeting = smm.GetMeetingById(id); bool checkvote = false; bool checksurvey = false; if (meeting.vote) { checkvote = vs.CheckVote(id); } if (meeting.survey) { checksurvey = ss.CheckSurvey(id); } @ViewBag.checkvote = checkvote; @ViewBag.checksurvey = checksurvey; return(View(meeting)); }
public ActionResult CheckSurvey(int id) { return(Json(new { success = true, msg = ss.CheckSurvey(id).ToString().ToLower() }, JsonRequestBehavior.AllowGet)); }