public async Task <ActionResult <Election> > GetElection(string id) { var election = await _electionService.GetElection(id); if (election == null) { return(NotFound()); } return(Ok(election)); }
public async Task <ActionResult <Election> > GetElection(string id) { var election = await _electionService.GetElection(id); if (election == null) { return(NotFound()); } return(Ok(election)); }