public IActionResult StartPullingFromGithubAPI()
        {
            bool listContainsDup = false;

            _githubService.SetUpDirectoryAndTextFile();
            for (int i = 0; i < 3; i++)
            {
                IList <string> list = new List <string>();
                list = _githubService.GetAPI();
                if (list.Count != list.Distinct().Count())
                {
                    listContainsDup = true;
                }
                ViewData["list" + i.ToString()] = listContainsDup;
            }

            return(View("~/Views/Shared/Confirm.cshtml"));
        }
        public IActionResult StartPullingFromGithubAPI()
        {
            // initialize list contains duplicates to false
            bool listContainsDup = false;

            // make sure local folder and file exists
            _githubService.SetUpDirectoryAndTextFile();

            for (int i = 0; i < 3; i++)
            {
                IList <string> list = _githubService.GetAPI();

                if (list.Count != list.Distinct().Count())
                {
                    listContainsDup = true;
                }

                ViewData["list" + i.ToString()] = listContainsDup;
            }

            return(View("~/Views/Shared/Confirm.cshtml"));
        }