Example #1
0
        public async Task <bool> DeleteRepository(long repositoryId, GitHubClient authorizedGitHubClient)
        {
            await _repoRepository.DeleteRepository(repositoryId, authorizedGitHubClient);

            try
            {
                var repo = await _repoRepository.GetRepository(repositoryId, authorizedGitHubClient);

                if (repo != null)
                {
                    return(false);
                }
            }
            catch (Exception)
            {
                return(true);
            }
            return(true);
        }