Exemplo n.º 1
0
        public IActionResult CopyQuestionsToTest(int testId, int[] questionIds)
        {
            //TODO: multiple questions in one query
            foreach (var qId in questionIds)
            {
                repository.CopyQuestionToTest(qId, testId, User.Identity.Name);
            }

            return(Json(repository.GetCurrentTestImportData(testId)));
        }