public async Task <GetProfessorQueryResponse> Handle(GetProfessorQuery request, CancellationToken cancellationToken) { var professor = await _repository.GetInfo(request.Cpf); if (professor != null) { professor.Salario = (((professor.TotalAlunos / this.TOTAL_ALUNOS_POR_TURMA) * professor.TotalGrades) * BONUS) + SALARIO; } return(_mapper.Map <GetProfessorQueryResponse>(professor)); }