public void EditQuestion(string QuestionId, [FromBody] Question question) { if (string.IsNullOrEmpty(QuestionId)) { return; } var _question = repoForApprove.GetQuestionByQID(QuestionId); if (_question == null) { return; } _question.IsAllowRandomChoice = question?.IsAllowRandomChoice ?? false; _question.Choices = question?.Choices?.Select(c => new Activated.Choice { _id = c.id, Detail = c.Detail, IsCorrect = c.IsCorrect, })?.ToList(); repoForApprove.UpsertActivedQuestion(_question); }