Example #1
0
        public ActionResult Index(string id)
        {
            var repos     = _externalRepositoryManager.ListRepositories().ToList();
            var repoModel = new RespositoryViewModel
            {
                SelectedRepoId = string.IsNullOrEmpty(id) ? "ncbi" : id,
                Repositories   = repos,
            };

            return(View(repoModel));
        }
Example #2
0
 public IEnumerable <ExternalRepository> Get()
 {
     return(_externalRepositoryManager.ListRepositories());
 }