BusinessLogic.Logic.Players.PlayerSaver.ValidatePlayerWithThisNameDoesntAlreadyExist C# (CSharp) Метод

ValidatePlayerWithThisNameDoesntAlreadyExist() приватный Метод

private ValidatePlayerWithThisNameDoesntAlreadyExist ( Player player, ApplicationUser currentUser ) : void
player Player
currentUser ApplicationUser
Результат void
        private void ValidatePlayerWithThisNameDoesntAlreadyExist(Player player, ApplicationUser currentUser)
        {
            if (player.AlreadyInDatabase())
            {
                return;
            }
            ThrowPlayerAlreadyExistsExceptionIfPlayerExistsWithThisName(player.Name, currentUser.CurrentGamingGroupId);
        }