public async Task <IActionResult> Edit([FromForm] QuestionBindingModel model)
        {
            if (ModelState.IsValid)
            {
                var questionModel = model.ToServiceModel();
                await _questionService.EditQuestionAsync(questionModel);

                return(RedirectToAction("Edit", "Survey", new { questionModel.SurveyId }));
            }

            return(View(model));
        }
        public async Task <IActionResult> Create([FromForm] QuestionBindingModel model)
        {
            if (ModelState.IsValid)
            {
                var questionModel = model.ToServiceModel();
                await _questionService.CreateQuestionAsync(questionModel);

                int questionId = questionModel.Id;
                int surveyId   = questionModel.SurveyId;

                return(RedirectToAction($"Create", "Option", new { surveyId, questionId }));
            }

            return(View(model));
        }