public IActionResult Getplayers() { var players = _repository.GetPlayers(); IActionResult ret = NoContent(); if (players.Any()) { ret = Ok(players); } return(ret); }