/// <summary>Overwrites all of the players in the source with this collection.</summary>
        /// <param name="players">All of the players to to store in the source.</param>
        [HttpPost] public void OverwritePlayers(PlayerCollection players)
        {
            if (players == null || players.Players == null)
            {
                throw new BadRequestException("Players not set");
            }
            var playerList = _cleanService.CleanData(players.Players);

            playerList = _sortService.SortPlayers(playerList);
            _writerService.WriteCsvData(_configuration.GetValue <string>("CsvFiles:PlayerFile"), playerList);
        }