
            for (int i = 0; i < order.Count; i++)
            {
                var question = questions.FirstOrDefault(q => q.QuestionId == order[i]);
                if (question != null)
                    question.Order = i;
            }
            _context.Question.UpdateRange(questions);
            await _context.SaveChangesAsync();

            return new FormsBaseViewModel
            {
                ErrorCode = QuestionSetError.NoError
            };
        }