Esempio n. 1
0
        private ActionResult MoveBackward(IQuestion model)
        {
            _answerManager.StoreAnswerId(model.Id, model.Answer ?? _httpWrapper.Form[model.Id]);

            var previousQuestion = _questionManager.GetPreviousQuestion(model.Id);

            if (previousQuestion == null)
            {
                return(RedirectToAction(MVC.Home.Index()));
            }

            return(RedirectToAction(MVC.Questions.ActionNames.Index, new { id = previousQuestion.Id }));
        }