public ActionResult TakeIntro(long id) { Poll poll = GetSession.Get <Poll>(id); if (poll != null && poll.Id == CurrentPollId) { PollTakeIntroFormModel model = new PollTakeIntroFormModel() { Poll = poll, IsRightToLeft = CurrentPollLCID.HasValue ? CultureHelper.IsRightToLeft(CurrentPollLCID.Value) : true }; return(View(model)); } else { return(RedirectToAction("Take", new { Id = id })); } }
public ActionResult TakeIntro(long id) { Poll poll = GetSession.Get<Poll>(id); if (poll != null && poll.Id == CurrentPollId) { PollTakeIntroFormModel model = new PollTakeIntroFormModel() { Poll = poll, IsRightToLeft = CurrentPollLCID.HasValue ? CultureHelper.IsRightToLeft(CurrentPollLCID.Value) : true }; return View(model); } else { return RedirectToAction("Take", new { Id = id }); } }