public async Task <float> Handle(GetAverageScorByIdConsultantQuery request, CancellationToken cancellationToken) { var evaluationAverage = await _repository.GetAverageScorAsync(request.Id); if (evaluationAverage == 0) { throw new ArgumentException("There are no evaluations for this consultant!", nameof(request)); } return(evaluationAverage); }