public int GetPendingCount()
        {
            var repo = new CandidatesRepository(_connectionString);

            return(repo.GetPendingCandidates().Count);
        }
        public List <Candidate> GetPendingCandidates()
        {
            var repo = new CandidatesRepository(_connectionString);

            return(repo.GetPendingCandidates());
        }