public async Task <IActionResult> Get([FromQuery] PageParamsAlunos pageParams) { var alunos = await _repository.GetAllAlunosAsync(pageParams, true); var alunosResult = _mapper.Map <IEnumerable <AlunoDto> >(alunos); Response.AddPagination(alunos.CurrentPage, alunos.PageSize, alunos.TotalCount, alunos.TotalPages); return(Ok(alunosResult)); }