예제 #1
0
 private Task <Option <Domain.Entities.QuestionOption, Error> > EnsureQuestionOptionExistsAsync(RegisterUserAnswer command) =>
 _questionOptionRepository
 .GetWithResultMapByIdAsync(command.ChosenOptionId)
 .SomeNotNullAsync(Error.NotFound($"Test question option with ID '{command.ChosenOptionId}' does not exists!"));