public IActionResult CheckPullRequests(GitHubInformationForm form, RequestTypes request)
        {
            var url = string.Empty;
            IList <PullRequest> pullRequests = new List <PullRequest>();

            if (!string.IsNullOrEmpty(form.UserName) && !string.IsNullOrEmpty(form.RepositoryName))
            {
                var gihubSettings = new GitHubSettings {
                    UserName = form.UserName, RepositoryName = form.RepositoryName, RequestType = request
                };
                url = _urlGenerator.GenerateUrlForGitHubApi(gihubSettings);
                try
                {
                    pullRequests = _githubService.ProcessPullRequests(url);
                }
                catch (Exception ex)
                {
                    ViewBag.InnerException = ex.Message;
                }
            }
            return(PartialView("_PullRequests", pullRequests));
        }