public async Task <ActionResult <IEnumerable <Election> > > GetElections() { var elections = await _electionService.GetElections(); if (elections == null) { return(NotFound()); } return(Ok(elections)); }