Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <IActionResult> Get([FromQuery] PageParams pageParams) { var alunos = await _repository.FindAllAsync(pageParams); var result = _mapper.Map <IEnumerable <AlunoDTO> >(alunos); Response.AddPagination(alunos.CurrentPage, alunos.PageSize, alunos.TotalCount, alunos.TotalPages); return(Ok(result)); }