private string CreateNewAssociatedUri(string longUri, int?userId)
        {
            var shortUri = _hashGeneretor.Generate(longUri, 10);

            if (IsShortUriExist(shortUri))
            {
                shortUri = CreateNewAssociatedUri(longUri, userId);
            }
            else
            {
                _repository.CreatNewElement(new AssociatedUri {
                    LongUri = longUri, ShortUri = shortUri, UserId = userId
                });
            }
            return(shortUri);
        }