public async Task <Result> HandleAsync(DeleteExamCommand command)
        {
            var exam = await _examsRepository.GetByIdAsync(_examId);

            if (exam == null)
            {
                throw new NullReferenceException($"Exam with ID '{_examId}' was not found.");
            }

            await _examsRepository.RemoveAsync(exam);

            return(Result.Success());
        }