Ejemplo n.º 1
0
        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 }));
            }
        }
Ejemplo n.º 2
0
        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 });
            }
        }