public static bool Test_GETREPOS() { try { GitHubFunctions udp = new GitHubFunctions("thee7player", GitHubUpdater.LogTypeSettings.LogStatusOnly); string[] Repos = udp.GetRepos(); if (Repos is null) { return(false); } foreach (string i in Repos) { Console.WriteLine(String.Format("{0} Repos -> {1}", udp.Username, i)); } return(true); } catch (Exception) { return(false); } }
public ActionResult GetInfo(string login) { GitHubFunctions repo = new GitHubFunctions(); GitHubViewModel vm = new GitHubViewModel(); vm.ghUser = repo.GetUser(login); vm.ghRepos = repo.GetRepos(login); return(Json(vm, JsonRequestBehavior.AllowGet)); }