public async Task <bool> CheckIfRepositoryAccessable(string repoUrl, int userId)
        {
            var repoName  = _synchronizationHelper.GetRepositoryNameFromUrl(repoUrl);
            var repoOwner = _synchronizationHelper.GetRepositoryOwnerFromUrl(repoUrl);

            return(await _githubClient.CheckIfRepositoryAccessable(repoName, repoOwner));
        }
        public async Task <bool> CheckIfRepositoryAccessable(string repoUrl, int userId)
        {
            var credentials = await GetUserCredentials(userId);

            var repoName  = _synchronizationHelper.GetRepositoryNameFromUrl(repoUrl);
            var repoOwner = _synchronizationHelper.GetRepositoryOwnerFromUrl(repoUrl);

            return(await _githubClient.CheckIfRepositoryAccessable(repoName, repoOwner, credentials.Username, credentials.Password));
        }