コード例 #1
0
        public async Task UpdateAnswerAsync([FromBody] AnswerUpdateRequest model)
        {
            var answer = await _questionnaireService.GetAnswerAsync(model.QuestionId, model.Id);

            if (answer != null)
            {
                await _questionnaireService.UpdateAnswersync(_mapper.Map <Answer>(model));
            }
        }