public async Task <ObservableCollection <RepositoryContent> > GetContentsOfRepository(long repoId, GitHubClient authorizedGitHubClient, string path = null) { if (string.IsNullOrWhiteSpace(path)) { return(new ObservableCollection <RepositoryContent>(await _repoRepository.GetContentsOfRepository(repoId, authorizedGitHubClient))); } return(new ObservableCollection <RepositoryContent>(await _repoRepository.GetContentsOfRepository(repoId, authorizedGitHubClient, path))); }