From fbc8f265808ebf6e2f0ca4f9a1912cb08e427500 Mon Sep 17 00:00:00 2001 From: shept Date: Mon, 2 Jun 2025 03:46:27 +0500 Subject: [PATCH] hot fix answervariants edit --- .../Services/AnswerVariantsService.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/SurveyBackend/SurveyBackend.Services/Services/AnswerVariantsService.cs b/SurveyBackend/SurveyBackend.Services/Services/AnswerVariantsService.cs index 091d1f7..d359111 100644 --- a/SurveyBackend/SurveyBackend.Services/Services/AnswerVariantsService.cs +++ b/SurveyBackend/SurveyBackend.Services/Services/AnswerVariantsService.cs @@ -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) {