private void Run()
        {
            if (webApiService.GetStateOfElection().IsElectionStarted == false)
            {
                Console.WriteLine("ACCESS DENIED. Election has not started yet.");
                Console.ReadKey();
                Environment.Exit(0);
            }
            if (webApiService.GetStateOfElection().IsElectionEnded == true)
            {
                Console.WriteLine("ACCESS DENIED. Election ended. You are late.");
                Console.ReadKey();
                Environment.Exit(0);
            }
            else
            {
                var userPESEL      = AskUserForPESEL();
                var listOfElectors = GetListOfElectors();
                ValidatePESEL(userPESEL, listOfElectors);

                List <Candidate> listOfCandidates = GetListOfCandidates();
                PrintListOfCandidates(listOfCandidates);

                int userVote = AskUserForCandidatesId(listOfCandidates);
                VoteForCandidateById(userVote);
                DeleteUserPESELfromList(userPESEL);
                Console.ReadKey();
            }
        }
        private void AddCandidate()
        {
            if (webApiService.GetStateOfElection().IsElectionStarted == true)
            {
                Console.WriteLine("Cannot add a candidate. Election has already been started.");
            }
            else
            {
                var candidate = new Candidate();

                Console.WriteLine("Enter candidate's first name:");
                candidate.FirstName = Console.ReadLine();

                Console.WriteLine("Enter candidate's last name:");
                candidate.LastName = Console.ReadLine();

                webApiService.AddNewCandidate(candidate);


                Console.WriteLine($"Candidate: {candidate.FirstName} {candidate.LastName}  has been added.");
            }
        }