diff --git a/src/Shentun.WebPeis.Domain/QuestionAnswers/QuestionAnswerManager.cs b/src/Shentun.WebPeis.Domain/QuestionAnswers/QuestionAnswerManager.cs index f76d0f7..5fb79a5 100644 --- a/src/Shentun.WebPeis.Domain/QuestionAnswers/QuestionAnswerManager.cs +++ b/src/Shentun.WebPeis.Domain/QuestionAnswers/QuestionAnswerManager.cs @@ -101,11 +101,11 @@ namespace Shentun.WebPeis.QuestionAnswers public async Task CheckAndDeleteAsync(Guid QuestionAnswerId) { - var questionRegisterAnswerEnt = await _questionRegisterAnswerRepository.FirstOrDefaultAsync(m => m.QuestionAnswerId == QuestionAnswerId); - if (questionRegisterAnswerEnt != null) - { - throw new UserFriendlyException($"问卷答案已被人员登记使用,不能删除"); - } + //var questionRegisterAnswerEnt = await _questionRegisterAnswerRepository.FirstOrDefaultAsync(m => m.QuestionAnswerId == QuestionAnswerId); + //if (questionRegisterAnswerEnt != null) + //{ + // throw new UserFriendlyException($"问卷答案已被人员登记使用,不能删除"); + //} await _questionAnswerRepository.DeleteAsync(d => d.QuestionAnswerId == QuestionAnswerId);