Exemplo n.º 1
0
        /// <summary>
        /// 创建选择题
        /// </summary>
        /// <param name="addSelectInput"></param>
        /// <returns></returns>
        public async Task <SelectOutput> InsertAddSelect(AddSelectInput addSelectInput)
        {
            var teacher = await GetTeacher();

            var selectDto = addSelectInput.Adapt <SelectDto>();

            selectDto.TeacherId = teacher.Id;
            var selectInsert = await _selectService.CreateSelect(selectDto);

            return(selectInsert.Adapt <SelectOutput>());
        }