示例#1
0
        public async Task <IActionResult> CreateAdditionalInfo(CreateAdditionalInfo model, int surveyId)
        {
            if (ModelState.IsValid)
            {
                await _repository.AddAdditionalInfoAsync(new AdditionalInfo
                {
                    LinkToSite  = model.LinkToSite,
                    LinkToVideo = model.LinkToVideo,
                    SurveyId    = surveyId
                });

                return(RedirectToAction("CreateQuestion", "Survey", new { surveyid = surveyId }));
            }

            return(View(model));
        }