public async Task <IActionResult> GetAtletas([FromQuery] AtletaParams atletaParams) { // var currentAtletaId = int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value); // var atletaFromRepo = await _repo.GetAtleta(currentAtletaId); // atletaParams.AtletaId = currentAtletaId; var atletas = await _repo.GetAtletas(atletaParams); Response.AddPagination(atletas.CurrentPage, atletas.PageSize, atletas.TotalCount, atletas.TotalPages); return(Ok(atletas)); }