/// <summary>
        /// Activates or deactivates an election
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult ActivateDeactivateElection(int id)
        {
            var oldElection = _electionManager.RetrieveElectionByElectionID(id);
            var newElection = new Election()

            {
                Name        = oldElection.Name,
                Description = oldElection.Description,
                Active      = oldElection.Active ? false : true
            };

            _electionManager.EditElection(oldElection, newElection);
            return(RedirectToAction("Index", new { active = oldElection.Active }));
        }