/// <summary>
        /// 编辑QuestionOption
        /// </summary>

        protected virtual async Task Update(QuestionOptionEditDto input)
        {
            //TODO:更新前的逻辑判断,是否允许更新

            var entity = await _entityRepository.GetAsync(input.Id.Value);

            input.MapTo(entity);

            // ObjectMapper.Map(input, entity);
            await _entityRepository.UpdateAsync(entity);
        }
        /// <summary>
        /// 新增QuestionOption
        /// </summary>

        protected virtual async Task <QuestionOptionEditDto> Create(QuestionOptionEditDto input)
        {
            //TODO:新增前的逻辑判断,是否允许新增

            // var entity = ObjectMapper.Map <QuestionOption>(input);
            var entity = input.MapTo <QuestionOption>();


            entity = await _entityRepository.InsertAsync(entity);

            return(entity.MapTo <QuestionOptionEditDto>());
        }