public async Task <IActionResult> Get([FromQuery] PageParamsProfessores pageParams) { var professores = await _repository.GetAllProfessoresAsync(pageParams, true); return(Ok(_mapper.Map <IEnumerable <ProfessorDto> >(professores))); }