public IActionResult PostPlayer([FromBody] Player player)
        {
            if (!TryValidateModel(player))
            {
                return(BadRequest());
            }

            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            _repository.AddPlayer(player);
            return(Created(Request.Path + player.Id.ToString(), player));
        }