hot fix answervariants edit
This commit is contained in:
parent
a5aad09046
commit
fbc8f26580
1 changed files with 0 additions and 6 deletions
|
|
@ -31,12 +31,6 @@ public class AnswerVariantsService : IAnswerVariantsService
|
|||
|
||||
public async Task UpdateAnswerVariantAsync(AnswerVariant answerVariant)
|
||||
{
|
||||
var question = await _questionRepository.GetByIdAsync(answerVariant.QuestionId);
|
||||
if (question is null)
|
||||
{
|
||||
throw new NotFoundException("Question not found");
|
||||
}
|
||||
|
||||
var answerVariantBase = await _answerVariantsRepository.GetByIdAsNoTrackingAsync(answerVariant.Id);
|
||||
if (answerVariantBase is null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue