public IEnumerable <KeyValueViewModel> GetElectionTypes()
        {
            var electionTypes = _electionRepository.GetElectionTypes().Result;

            return(electionTypes.Select(ModelTransformer.ElectionTypeToKeyValueViewModel));
        }